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
* initialize RAC submenu
* use cached children
* cleanup
* use one useRenderProps
* types
* cleanup
* fix trigger ref
* typescript
* add chevron style to submenu trigger
* types
* cleanup
* pass submenu ref
* add submenu story to menu story file
* fix nested case
* cleanup
* add nested story
* fix trigger attribute
* add tests
* update jsdoc
* add docs
* update storybook styles
* fix docs types
* cleanup tests
* move imports in docs closer to example
* typescript
* add example to homepage
* close all submenus if underlay is clicked
* revert autoformatting from headwind
* add to small example, fix imports and labels
* render via portal
* add render props and data attributes
* add || undefined
* add many items example
* add keys for storybook
* imrove styles on docs page
* improve homepage styles
* move chevron into item wrapper
* ts lint
* lint
* story style update
* style isSubmenuOpen states
* add dynamic example to dcs
* don't allow submenu trigger to be a link
* clarify submenutrigger children order in types
* use proper hover state from useHover
* update tests
* update docs to clarify children
* remove top -5 offset
* add disabled submenu example
* fix iOS VO submenu closing issue
* add Select story with many items
* move docs chevron styles from inline to CSS snippet
* export SubmenuTrigger directly without forwardRef
* update render props
* fix indentation
* add has-submenu to tailwind plugin
* remove offset
* fix homepage example styles
* fix docs example dark mode style
* focus trigger on escape
* add test for focus menu trigger after submenu closes via escape
* add alpha tag to docs
* add JSDoc
* fix restoring focus to menu trigger after nested submenu closed via Esc key
* lint
* Render popover outside menu item div
fixes hover event handling (events bubble through portals)
* support a custom delay prop in hook and RAC
* remove from homepage and tailwind starter for now
* revert auto-formatting
---------
Co-authored-by: Devon Govett <[email protected]>
Co-authored-by: Daniel Lu <[email protected]>
Submenus can be created by wrapping an item and a submenu in a `SubmenuTrigger`. The `SubmenuTrigger` accepts exactly two children: the first child should be the `MenuItem` which triggers opening of the submenu, and second child should be the `Popover` containing the submenu.
0 commit comments