N00nDay / stwui

Opinionated yet customizable Svelte-TailwindCSS component library
stwui.vercel.app
MIT License
451 stars 21 forks source link

Less strict component hierarchy for Dropdown #123

Closed gw2princeps closed 1 year ago

gw2princeps commented 1 year ago

Reference: https://discord.com/channels/1027197401905233990/1100768860459761734/1100771038721224754

At the moment, the Dropdown items expects components of type <Dropdown.Items.Item/>. This makes it impossible to have a Dropdown Item Button as a form submit. It would be good to ease the component hierarchy here and allow arbitrary components in the items.item slots (or something like this, I'm not well versed with svelte).