Why can't we have named slots for layouts? #6873
novotionyx
started this conversation in
Ideas
Replies: 1 comment
-
This feature has already been considered and the core maintainers gave it a to-implement priority of |
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
-
I've found this feature to be non existent yet constantly I run into it. Layouts are inherintly just components that take on children, and in any other context (such as writing our own component) - if we have children, we can allow named slots and place things in specific positions using
<svelte:fragment>
or by simply targeting the named slots with any other tag.I think if we had named slots for layouts, it would reduce the tendency to create custom Layout components to compensate. I'm sure this idea has been brought up before, I just find I run into this shortcoming a lot more than I'd like!
Beta Was this translation helpful? Give feedback.
All reactions