box-ui-elements-mlh
Version:
6 lines (4 loc) • 409 B
Markdown
`import DropdownMenu from 'box-ui-elements/es/components/dropdown-menu';`
The `<DropdownMenu>` component requires a "button" component and a `<Menu>` component to be passed in as the only children.
It handles keyboard navigation, focus states, and global document click closing. This component is compliant with the
[ ](https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton).