huntabyte / shadcn-svelte

shadcn/ui, but for Svelte. ✨
https://next.shadcn-svelte.com
MIT License
5.34k stars 332 forks source link

next: usage example for select raises error #1428

Open heheleo opened 3 hours ago

heheleo commented 3 hours ago

Change Type

Addition

Proposed Changes

The current Select component example does not play well with Svelte 5, as it raises the error:

Property 'type' is missing in type '{ children: () => any; }' but required in type 'SelectMultipleRootPropsWithoutHTML'

This can be fixed by specifying the type prop within Select.Root. This also aligns with the jsdoc, which has marked type as required.

heheleo commented 3 hours ago

To clarify, this is the example under the Usage subheading, relating to the theme.