Dropdown Menu
Menu surface with `role="menu"` + `menuitem`, arrow key nav, type-ahead, and submenu support.
Preview
Switch the framework picker (top-right of the panel) to render the same demo live in React, Vue, or Angular — same class names, ARIA, and visual output across all three.
Installation
Sisyphos UI ships unified packages for React, Vue, and Angular. Pick the one that matches your stack — every framework exports the same component classes, ARIA semantics, and CSS tokens.
$ pnpm add @sisyphos-ui/reactThen import the bundled stylesheet once at app entry: import "@sisyphos-ui/react/styles.css";
Usage
import { DropdownMenu, Button } from "@sisyphos-ui/react";
export const RowActions = () => (
<DropdownMenu
items={[
{ label: "Edit", onSelect: () => {} },
{ label: "Duplicate", onSelect: () => {} },
{ type: "separator" },
{ label: "Delete", destructive: true, onSelect: () => {} },
]}
>
<Button variant="outlined">Actions ▾</Button>
</DropdownMenu>
);Placement
Anchor the menu to any corner of the trigger.
Disabled items
Greyed-out items stay visible for discoverability but skip in keyboard navigation.
API
Props table is being written. See the package README for the complete API surface.
The full API including refs, ARIA attributes, and HTML passthroughs lives in the package README on npm.