Simplifying Named Slots Syntax for Better Readability #900
Closed
lenin-developer
started this conversation in
Ideas
Replies: 2 comments
-
See https://github.com/orgs/vuejs/discussions/12671#discussioncomment-11933643 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I close the thread 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community, I am sharing here a proposal that I find very interesting.
This proposal was made by: @Navidtm in the vue repository in the ideas section.
https://github.com/orgs/vuejs/discussions/12671
The idea is to simplify the syntax of passing a
<slot>
by name, as followsCurrent syntax
proposal
with all that it may imply
v-slot:header
or#header
v-slot:[dynamicSlotName]
or#[dynamicSlotName]
v-slot:name="slotProps"
or#name="slotProps"
As I mentioned, I saw this proposal in the Vue repository.
Proposing a syntax change can always bring debate in the community.
But I think this is the right place to launch this proposal and see the community's acceptance.
Beta Was this translation helpful? Give feedback.
All reactions