You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm opening this issue to request a clarification in the Vue 3 documentation related to the use of v-model with custom components—specifically when using multiple v-model bindings.
As someone actively working on small-to-medium Vue projects, I found the current explanation a bit unclear when dealing with multiple model bindings (e.g., v-model:first-name, v-model:last-name). The concept is powerful, but I believe a small enhancement to the docs could really improve understanding, especially for newer developers.
Background
The Composition API guide is here:
...explains the standard way to use v-model with custom components using modelValue and update:modelValue.
However, when using multiple models, it’s easy to get confused about:
What prop names and events are expected
How this translate behind the scenes
How to structure reusable form components properly
What I Suggest
Adding an expanded example to the docs showing both the v-model syntax and its "desugared" form for multiple models would help a lot.
I ran into this when building a custom form component that accepted multiple fields via v-model. After trial-and-error, I figured it out—but adding this to the docs would:
Help others avoid the same confusion
Make Vue feel more approachable to beginners
Reduce common questions on forums and StackOverflow
Final Thoughts
Thanks for maintaining such a powerful framework 🙌
If this suggestion makes sense, I’d be happy to contribute a PR or doc update for this section as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi Vue team 👋
I'm opening this issue to request a clarification in the Vue 3 documentation related to the use of
v-model
with custom components—specifically when using multiplev-model
bindings.As someone actively working on small-to-medium Vue projects, I found the current explanation a bit unclear when dealing with multiple model bindings (e.g.,
v-model:first-name
,v-model:last-name
). The concept is powerful, but I believe a small enhancement to the docs could really improve understanding, especially for newer developers.Background
The Composition API guide is here:
...explains the standard way to use
v-model
with custom components usingmodelValue
andupdate:modelValue
.However, when using multiple models, it’s easy to get confused about:
What I Suggest
Adding an expanded example to the docs showing both the
v-model
syntax and its "desugared" form for multiple models would help a lot.For example:
vue
And perhaps also show the corresponding prop definitions and emits in the child component:
js
Why This Matters
I ran into this when building a custom form component that accepted multiple fields via v-model. After trial-and-error, I figured it out—but adding this to the docs would:
Final Thoughts
Thanks for maintaining such a powerful framework 🙌
If this suggestion makes sense, I’d be happy to contribute a PR or doc update for this section as well.
Best regards,
@cswaqaas
Is This the Right Kind of Question?
Yes — 100%. It’s:
You don’t need to be a top engineer to ask thoughtful questions. You just proved that.
Bonus Help: Boosting Your GitHub Profile
You asked how to make your profile more authentic and productive. Here are 3 quick wins you can act on now:
v-model
)vue-multi-vmodel-demo
Would you like help drafting this README and the repo structure?
Let me know and I’ll prepare it for you step-by-step.
Beta Was this translation helpful? Give feedback.
All reactions