Reusable Form Input Components With Vue 3

  Рет қаралды 21,588

John Komarnicki

John Komarnicki

Күн бұрын

Пікірлер: 32
@hafizjavaid
@hafizjavaid 2 жыл бұрын
Really helpful as always. Please create the fully functional project using vue 3 set-up api, vuex / pinia and typescript
@_the_one_1
@_the_one_1 2 жыл бұрын
Pro tip: if you use `type: [Boolean, String]` for the label prop you don't need to specify `default: false` because that would be set by default
@Tarabass
@Tarabass Жыл бұрын
I think the whole boolean isn't necessary, just make the string not required. An empty string is falsy..
@martinpenev6750
@martinpenev6750 Жыл бұрын
This video just cleared a confusion I had for quite some time! Thx for the superb explanation 👏🏻
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
Glad it was helpful!
@Al-Misanthropic-Bundy
@Al-Misanthropic-Bundy 2 жыл бұрын
These damn bots commenting on every video now. Thanks a lot for the video! I love Vue3 and you always slow us nice and easy stuff about it!
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Yeah, lol. I’ve seen these a lot recently 😂 thanks glad you’re enjoying and finding them valuable!
@owhut5439
@owhut5439 2 жыл бұрын
Great content, hope to see a nuxt 3 tutorial soon
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Yes, I’ll be creating some content with nuxt soon!
@tanzimibthesam5861
@tanzimibthesam5861 6 ай бұрын
What to do if i want to make whole form resuable?
@ReturnMeVoid
@ReturnMeVoid 2 ай бұрын
what about passing v-model.lazy.number???
@Ikkin267
@Ikkin267 Жыл бұрын
Hello is this also applicable for ionic vue project? Thank you
@CsabaKissColorado
@CsabaKissColorado Жыл бұрын
You could make it even simpler by using the useVModel function from the VueUse library
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
Yeah, I wanted to show how to do this without that, to understand how it worked under the hood. But vueUse is definitely a viable option!
@DanielTames
@DanielTames 2 жыл бұрын
Thanks for the video John! I have a question, the $attrs key binded can be used for any other html tag? Is there another using for this key?
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
$attrs holds all the attribute values pass from the parent for you to access within the template itself. You can use it on any element you want to inherit the attributes on
@DanielTames
@DanielTames 2 жыл бұрын
@@JohnKomarnicki Awesome!! Thank you Also, idk why I can’t use defineEmmits or defineProps() without importing them, the editor shows an error, or I’m not sure if it’s a vetur or volar error
@Al-Misanthropic-Bundy
@Al-Misanthropic-Bundy 2 жыл бұрын
@@DanielTamesMake sure you are using
@NeGovoriNet
@NeGovoriNet 2 жыл бұрын
Thank you. Will you tell us about how to validate these components?
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
I’m going to create a follow up video for validation on forms!
@kookoo6128
@kookoo6128 29 күн бұрын
very good useful tutorial, about a very specific thing.
@dimjohn5878
@dimjohn5878 2 жыл бұрын
when i import the Modal to my parent component, the child component is shown in the script (Modal gets green) and not in the template (Modal is shown as plain text ). As a result i cant reuse the child component. Can someone help me plz
@pixiedev
@pixiedev Жыл бұрын
Thanks this is what I need.
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
Glad to hear!
@RianY2K
@RianY2K 2 жыл бұрын
Thank you for video, this is useful
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
I’m glad to hear!
@manjirisonar4490
@manjirisonar4490 2 жыл бұрын
Thanks for this tutorial. Its helpful but Getting following error. Can you please help me here? => E:\...\customelement\src\components\BaseInput.vue 14:3 error 'defineProps' is not defined no-undef ✖ 1 problem (1 error, 0 warnings)
@manamimnm
@manamimnm 2 жыл бұрын
try importing defineProps from vue
@karthikm.1804
@karthikm.1804 2 жыл бұрын
Tutorial on Product feedback app with vue
@ravibhati9270
@ravibhati9270 Жыл бұрын
Would be great if you can share, how the same BaseInput can be used with other types like (number, email, password, etc)
@guillermomazzari4983
@guillermomazzari4983 2 жыл бұрын
Great vid, but it be way better using pinia, just a comment
Reusable Form Components with Vue 3
14:18
Vue Mastery
Рет қаралды 55 М.
Props and Emitters in Vue 3 (FULL TUTORIAL)
14:53
VueReference
Рет қаралды 18 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
A Better Way To Organize Components In Vue
10:10
Program With Erik
Рет қаралды 25 М.
Tidy Up Your Vue Forms
14:55
cdruc
Рет қаралды 4,8 М.
A Simple Vue 3 Reusable Skeleton Loader Component
13:02
John Komarnicki
Рет қаралды 11 М.
Easy Loading Pages With Vue Suspense
5:10
John Komarnicki
Рет қаралды 17 М.
Refactoring Vue 3 code | Reusable Form Component | Reusable Components
19:36
Stop Using .value with ref In Vue 3! Reactivity Transformed Explained!
14:22
Easy Form Validation With Vuelidate | Vue 3
8:19
John Komarnicki
Рет қаралды 34 М.
I remade Apple Genmoji in ONE DAY
8:49
Evan Zhou
Рет қаралды 71 М.
Vue Slots Simplified
7:25
LearnVue
Рет қаралды 57 М.
Building a Reusable Tabs Component with Vue Slots
8:21
LearnVue
Рет қаралды 33 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН