Using Svelte 5 snippets instead of sub-components #1137
mquandalle
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Some shadcn-svelte UI elements are currently implemented using many sub-components, each in their own dedicated files. For example the code of the calendar component is split in 14 files https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/registry/default/ui/calendar.
With Svelte 5 wouldn't it make sense to use snippets instead of single-file sub-components? Any plan on that front?
Beta Was this translation helpful? Give feedback.
All reactions