Overlays
Dropdown Menu
A menu of actions that opens below a trigger, with icons, separators and a danger style.
Group: Overlays. Exports: DropdownMenu. shadcn/ui equivalent: Dropdown Menu (partial parity).
Usage
import { DropdownMenu } from "./halaska-kit";
DropdownMenu props
triggerReactNode: The element that opens it.itemsarray: The entries to render.
Accessibility
- The menu has menu and menuitem roles and is hidden while closed.
- Opening from the keyboard, or pressing the Down arrow on the trigger, moves focus to the first item. Up and Down arrows, Home and End move between items.
- Escape or a pick closes the menu and returns focus to the trigger. Tab and an outside click also close it.
- aria-haspopup and aria-expanded are set on the trigger itself when it is a kit Button or a native element.
Known gaps
- No submenus.
- No checkbox or radio items.
- No labels, groups or shortcuts.
- No disabled items.
- Placement is fixed: below the trigger, aligned to its right edge.
Halaska UI · Components · Patterns · Screens · Install