rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.25k stars 175 forks source link

Suggestions #636

Open MattPurland opened 8 months ago

MattPurland commented 8 months ago
  1. Export the bound "list" variable, as you have with "container"
  2. Extract the "list-item" markup into it's own component. This means should the user create their own "list" slot, they can use your "list-item" component
  3. Following from point 2, could all functions/actions used by the "list-item" be extracted into their own javascript file so the user can import them should they want to create their own "list-item" via the slot. This is probably quite the rewrite, though.

I probably have others, but I'm only now migrating from v4 and this is what I'm finding so far