Support self-closing x-slot
tag
#43765
Unanswered
jacksleight
asked this question in
Ideas
Replies: 1 comment 3 replies
-
Added a pull request #43879 for ya. |
Beta Was this translation helpful? Give feedback.
3 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.
-
When you're using
x-slot
to just pass attributes to a child element (with no content) it would be great if you could just do:Unfortunately this doesn't work and errors with:
Unable to locate a class or view for component [slot:button].
You have to write out the full tag instead:Only a small thing but it would be a nice way to make the code a bit cleaner.
Beta Was this translation helpful? Give feedback.
All reactions