You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's take the menu-ness from Dropdown and offer it as a standalone component. @fallaciousreasoning 's idea is that the anchor would be provided via a slot.
How about we have the following component names?
Floating - popover stuff, mostly provided by floating-ui
Menu - list of items that is anchored to something (props: isOpen, target)
Dropdown - opens a menu anchored to the dropdown input
ButtonMenu - opens a menu when a button is clicked
Things Dropdown can keep that ButtonMenu doesn't really need:
Extracting the text from an option
Providing a change event to the consumer
The text was updated successfully, but these errors were encountered:
Let's take the menu-ness from Dropdown and offer it as a standalone component. @fallaciousreasoning 's idea is that the anchor would be provided via a slot.
How about we have the following component names?
Floating
- popover stuff, mostly provided byfloating-ui
Menu
- list of items that is anchored to something (props:isOpen
,target
)Dropdown
- opens a menu anchored to the dropdown inputButtonMenu
- opens a menu when a button is clickedThings Dropdown can keep that ButtonMenu doesn't really need:
change
event to the consumerThe text was updated successfully, but these errors were encountered: