# Menu

A short list of actions behind a trigger.

Import from `@a31labs/rax/menu`.

## Usage

```tsx
<Menu trigger={<Button>Actions</Button>} items={[{ label: "Rename", onSelect: rename }, { label: "Delete", onSelect: remove, danger: true }]} />
```

## Rules

Popover: `trigger`, children, `side`, controlled or default open. Menu: `trigger`, `items` (`{ label, onSelect, danger, icon, description, current }`); with an icon or description an item becomes a richer row (a 32px icon tile, the label in 600 and the description in ink-2 under it), for app or area switchers, and `current` adds a check. Tooltip: `content`, one child. All three take `container`, and `className` and `ref` for the floating popup. Tooltips never hold information that is not available elsewhere.

Page: https://rax.a31.at/components/menu
