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

Add `list-prepend` and `list-append` slots #564

Closed sawyerclick closed 1 year ago

sawyerclick commented 1 year ago

Add slots for content at the top and bottom of the list. I propose list-prepend and list-append for adding content at the top and bottom of the opened list. To do this currently you need to access the list slot which overwrites all select logic and makes the developer rewrite (see the on:click event in the demo vs. the robust classings & events in the source cdoe). This proposal would preserve item logic without having to duplicate all the magic in the source.

Willing to write this myself, as I think the inclusion of the two empty slots would be enough.

rob-balfre commented 1 year ago

@sawyerclick released in 5.5.0

thanks

rob-balfre commented 1 year ago

5.5.1 ... messed up release!