Menu
Sample projects
| Name | Status | Updated |
|---|---|---|
| Avyra | In review | 2026-10-14 |
| Kelmio | Ready | 2026-10-13 |
| Nuvio | In progress | 2026-10-12 |
A button that opens a list of actions, links, checkboxes or radio choices, with arrow-key and typeahead navigation; className, style, other attributes and the ref go to the trigger.
A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.
For a short list of actions or options behind one button: row actions, sort order, visible columns.
Navigation between pages? Links. A choice inside a form? Select.
Follows the ARIA menu button pattern: arrows and typeahead move through items, Escape closes and returns focus to the button.
import { Menu } from '@idyeah/diya'Stable since 1.0.0
itemsRequiredMenuItem[]The menu's items, in order.
labelRequiredstringThe trigger button's visible text, or only its accessible name when triggerIcon is set; also names the menu.
disabledbooleanDisables the trigger.
Default false
onOpenChange(open: boolean) => voidCalled with the next open state whenever the panel opens or closes.
openbooleanWhether the panel is open; leave it out to let the trigger manage it.
triggerReactElement<any, string | React.JSXElementConstructor<any>>Your own trigger element, such as <Button iconOnly aria-label="More">…</Button>; DIYA wires its click, keys and ARIA. Defaults to a DIYA Button showing label.
triggerIconReactNodeShows this icon as an icon-only trigger instead of the label text.
Also takes every native <button> attribute, such as name, id or data-*.