# Menu

> A dropdown menu triggered by a button with full keyboard navigation. Contains MenuItem, Divider, and MenuLabel subcomponents.

Source: https://vaneui.com/docs/overlay-components/menu

Import: `import { Menu, Button, Divider, IconButton, MenuItem, MenuLabel, Row, Tooltip } from "@vaneui/ui"`

Menu holds actions that apply to one object or view, such as edit, duplicate or share. The dropdown is a Popup with `role="menu"`, each MenuItem is a `<button>` with `role="menuitem"` by default, and the trigger gets `aria-haspopup="menu"` and `aria-expanded`. To pick a value that a form submits, use [Select](/docs/form-components/select); for navigation that stays visible in a sidebar or header, use [NavLink](/docs/basic-components/navlink).

## Basic usage

A dropdown menu triggered by a button. Pass the trigger as a React element via the `trigger` prop; children are the menu contents. Includes full keyboard navigation (Arrow keys, Enter, Escape, Tab) and focus management with a keyboard-visible outline on each item. Focus returns to the trigger when the menu closes. Escape closes only the topmost layer: a submenu before its parent menu, and a menu inside a `Modal` before the dialog. Moving the pointer to another item closes a submenu that is open.

The popup takes its accessible name from the trigger through `aria-labelledby`, and a trigger without an `id` gets a generated one. An `aria-label` or `aria-labelledby` you set on the menu is kept. The item focused last is the menu's one tab stop, and hovering an item focuses it. These need `@vaneui/ui` 1.6.0 or later.

```tsx demo
<Menu trigger={<Button>Actions</Button>}>
  <MenuItem>Edit</MenuItem>
  <MenuItem>Duplicate</MenuItem>
  <MenuItem>Share</MenuItem>
</Menu>
```

## Labels and dividers

Use `MenuLabel` for section headings and `Divider` for visual separators between groups. `Divider` automatically picks up the Menu's size via the menu-divider sub-theme.

```tsx demo
<Menu trigger={<Button>Account</Button>}>
  <MenuLabel>Account</MenuLabel>
  <MenuItem>Profile</MenuItem>
  <MenuItem>Settings</MenuItem>
  <Divider />
  <MenuLabel>Workspace</MenuLabel>
  <MenuItem>Members</MenuItem>
  <MenuItem>Billing</MenuItem>
  <Divider />
  <MenuItem>Sign out</MenuItem>
</Menu>
```

## Items with icons

Place SVG icons directly inside `MenuItem`. They are automatically flex-aligned and pointer-events-disabled so clicks pass through to the item.

```tsx demo
<Menu trigger={<Button>File</Button>}>
  <MenuItem><Edit size={14} /> Edit</MenuItem>
  <MenuItem><Copy size={14} /> Duplicate</MenuItem>
  <Divider />
  <MenuItem danger><Trash2 size={14} /> Delete</MenuItem>
</Menu>
```

## Destructive item

Use the `danger` appearance prop on a `MenuItem` to flag a destructive action. Combine with a `Divider` to visually separate it from safe actions.

```tsx demo
<Menu trigger={<Button>Manage</Button>}>
  <MenuItem>Rename</MenuItem>
  <MenuItem>Archive</MenuItem>
  <Divider />
  <MenuItem danger>Delete permanently</MenuItem>
</Menu>
```

## Item appearances

Any appearance prop works on `MenuItem` for semantic coloring of individual actions.

```tsx demo
<Menu trigger={<Button>Review</Button>}>
  <MenuItem success>Approve</MenuItem>
  <MenuItem warning>Request changes</MenuItem>
  <MenuItem danger>Reject</MenuItem>
</Menu>
```

## Disabled items

Set `disabled` on a `MenuItem` to prevent interaction. Disabled items are skipped during keyboard navigation and announced via `aria-disabled`.

```tsx demo
<Menu trigger={<Button>Edit</Button>}>
  <MenuItem>Undo</MenuItem>
  <MenuItem disabled>Redo</MenuItem>
  <Divider />
  <MenuItem>Cut</MenuItem>
  <MenuItem>Copy</MenuItem>
  <MenuItem disabled>Paste</MenuItem>
</Menu>
```

## Items as links

Pass `href` to render a `MenuItem` as an anchor tag. For client-side navigation in a Next.js app, also pass `tag={Link}`.

```tsx demo
<Menu trigger={<Button>Navigate</Button>}>
  <MenuItem href="/settings">Settings</MenuItem>
  <MenuItem href="/profile">Profile</MenuItem>
  <Divider />
  <MenuItem href="https://github.com" target="_blank">GitHub</MenuItem>
</Menu>
```

## Selected items

A `MenuItem` with `aria-selected="true"` takes the hover fill, the same rule NavLink follows, so an item stays highlighted while the pointer and focus are elsewhere. The rule needs `@vaneui/ui` 1.4.5 or later.

MenuItem renders `role="menuitem"` by default, and ARIA defines no selected state for a menu item, so assistive technology may ignore `aria-selected` there. Treat the fill as a visual highlight only. For a list of options with one selected, such as search results under a search box, use NavLink with `role="option"` inside a `role="listbox"` container, where `aria-selected` is announced.

## Checkable items

A `MenuItem` keeps a `role` you pass, so `role="menuitemcheckbox"` or `role="menuitemradio"` with `aria-checked` makes a checkable item, and assistive technology announces the checked state. Keep your own state, show the mark yourself, and set `closeMenuOnClick={false}` to keep the menu open while the user toggles. This needs `@vaneui/ui` 1.5.0 or later.

```tsx demo
const [grid, setGrid] = useState(true);
const [density, setDensity] = useState('comfortable');
const mark = (on: boolean) => <Check size={14} style={{ visibility: on ? 'visible' : 'hidden' }} />;

return (
  <Menu trigger={<Button>View</Button>}>
    <MenuItem role="menuitemcheckbox" aria-checked={grid} closeMenuOnClick={false} onClick={() => setGrid(!grid)}>
      {mark(grid)} Show grid
    </MenuItem>
    <Divider />
    <MenuItem role="menuitemradio" aria-checked={density === 'comfortable'} closeMenuOnClick={false} onClick={() => setDensity('comfortable')}>
      {mark(density === 'comfortable')} Comfortable
    </MenuItem>
    <MenuItem role="menuitemradio" aria-checked={density === 'compact'} closeMenuOnClick={false} onClick={() => setDensity('compact')}>
      {mark(density === 'compact')} Compact
    </MenuItem>
  </Menu>
);
```

## Shape, variant and appearance

The props you set on `Menu` reach the dropdown frame, so the popup takes the shape, variant and appearance rather than the trigger.

```tsx demo
<Row flexWrap>
  <Menu trigger={<Button>rounded, the default</Button>}>
    <MenuItem>Edit</MenuItem>
    <MenuItem>Duplicate</MenuItem>
  </Menu>
  <Menu sharp trigger={<Button>sharp</Button>}>
    <MenuItem>Edit</MenuItem>
    <MenuItem>Duplicate</MenuItem>
  </Menu>
  <Menu filled secondary trigger={<Button>filled secondary</Button>}>
    <MenuItem>Edit</MenuItem>
    <MenuItem>Duplicate</MenuItem>
  </Menu>
  <Menu border info trigger={<Button>info border</Button>}>
    <MenuItem>Edit</MenuItem>
    <MenuItem>Duplicate</MenuItem>
  </Menu>
</Row>
```

## Sizes

Set a size on `Menu` (e.g. `<Menu lg>`) and the dropdown popup, every `MenuItem`, `MenuLabel`, and nested `Divider` scale together automatically. No need to repeat the size on every child. Items render with larger font-size and padding, the popup frame lifts its inner padding, and dividers match. Individual children can still override with their own size prop. At every size the text of a `MenuItem` and a `MenuLabel` is centered by the height of its capital letters, in the `<span class="vane-text-run">` that [How Button centers its label](/docs/basic-components/button#how-button-centers-its-label) explains.

```tsx demo
<Row flexWrap>
  <Menu xs trigger={<Button xs>xs</Button>}>
    <MenuLabel>Actions</MenuLabel>
    <MenuItem>Edit</MenuItem>
    <Divider />
    <MenuItem danger>Delete</MenuItem>
  </Menu>
  <Menu sm trigger={<Button sm>sm</Button>}>
    <MenuLabel>Actions</MenuLabel>
    <MenuItem>Edit</MenuItem>
    <Divider />
    <MenuItem danger>Delete</MenuItem>
  </Menu>
  <Menu md trigger={<Button md>md</Button>}>
    <MenuLabel>Actions</MenuLabel>
    <MenuItem>Edit</MenuItem>
    <Divider />
    <MenuItem danger>Delete</MenuItem>
  </Menu>
  <Menu lg trigger={<Button lg>lg</Button>}>
    <MenuLabel>Actions</MenuLabel>
    <MenuItem>Edit</MenuItem>
    <Divider />
    <MenuItem danger>Delete</MenuItem>
  </Menu>
  <Menu xl trigger={<Button xl>xl</Button>}>
    <MenuLabel>Actions</MenuLabel>
    <MenuItem>Edit</MenuItem>
    <Divider />
    <MenuItem danger>Delete</MenuItem>
  </Menu>
</Row>
```

## Controlled state

Pass `open` and `onOpenChange` to drive the menu from outside state. Useful when you need to open the menu programmatically or react to its state.

```tsx demo
const [open, setOpen] = useState(false);

return (
  <Menu
    open={open}
    onOpenChange={setOpen}
    trigger={<Button>Menu ({open ? "open" : "closed"})</Button>}
  >
    <MenuItem onClick={() => console.log("Edit")}>Edit</MenuItem>
    <MenuItem closeMenuOnClick={false}>Stay open on click</MenuItem>
    <MenuItem>Close on click (default)</MenuItem>
  </Menu>
);
```

## Tooltip on the trigger

To label an icon-only trigger, wrap it in a [Tooltip](/docs/overlay-components/tooltip) and pass the Tooltip as the `trigger`. The menu's ref, click handler and `aria-haspopup` and `aria-expanded` attributes go to the button inside, so the menu opens on click and anchors to it, while the tooltip shows on hover and focus. This needs `@vaneui/ui` 1.5.0 or later.

```tsx demo
<Menu trigger={
  <Tooltip content="Options">
    <IconButton aria-label="Options"><Settings /></IconButton>
  </Tooltip>
}>
  <MenuItem>Edit</MenuItem>
  <MenuItem>Duplicate</MenuItem>
  <Divider />
  <MenuItem danger>Delete</MenuItem>
</Menu>
```

## Menus with more items than fit on screen

A menu that is taller than the space on screen scrolls inside its popup. Add `clampHeight` to cap the scrolling area at a maximum height that follows the menu's size. Scrolling needs `@vaneui/ui` 1.6.0 or later: before that, the last items ran off the screen.

```tsx demo
<Menu clampHeight trigger={<Button>City</Button>}>
  {['Honolulu', 'Anchorage', 'Los Angeles', 'Denver', 'Chicago', 'New York', 'Halifax', 'London', 'Berlin', 'Athens', 'Dubai', 'Karachi', 'Dhaka', 'Bangkok', 'Shanghai', 'Tokyo', 'Sydney', 'Auckland'].map((city) => (
    <MenuItem key={city}>{city}</MenuItem>
  ))}
</Menu>
```

## Advanced props

Menu supports additional configuration for fine-tuning behavior:

| Prop | Default | Description |
|------|---------|-------------|
| `open` |   | Controlled open state |
| `defaultOpen` | `false` | Initial open state (uncontrolled) |
| `onOpenChange` |   | Called when open state changes |
| `onClose` |   | Called when the menu closes |
| `closeOnItemClick` | `true` | Close menu when any item is clicked |
| `loop` | `true` | Loop keyboard navigation from last to first |
| `disabled` | `false` | Prevent menu from opening |
| `transitionDuration` | `150` | Animation duration in ms |

`MenuItem` also accepts:

| Prop | Default | Description |
|------|---------|-------------|
| `closeMenuOnClick` | inherits | Override the menu-level `closeOnItemClick` for this item |
| `href` |   | Render as anchor tag |
| `disabled` | `false` | Prevent interaction |
| `focusVisible` | `true` | Render a keyboard focus-visible outline |
| `noFocusVisible` |   | Disable the keyboard focus-visible outline |

## Frequently asked questions

### How do I add a submenu?

Nest a `Menu` inside a Menu and give it a `MenuItem` as its `trigger`, as in `<Menu trigger={<MenuItem>Share</MenuItem>}>`. The submenu opens on hover, on click and with `ArrowRight`, and `ArrowLeft` or `Escape` closes only that level. It opens to the right of its item and flips when there is no room, and picking an item in it closes every level.

### Why doesn't my own trigger component open the Menu?

Menu clones the `trigger` element and passes it a `ref`, `onClick`, `onKeyDown`, `aria-haspopup`, `aria-expanded` and `aria-controls`. A component that does not hand the ref to its DOM element and spread the other props onto it drops them, so the click never reaches the Menu and the popup has nothing to anchor to. Forward the ref and spread the rest of the props onto the button.

### Why do my Menu theme defaults have no effect?

Menu has a theme node for each part: `menu.popup` for the dropdown, `menu.item` for `MenuItem`, `menu.label` for `MenuLabel` and `menu.divider` for a `Divider` inside it. A flat `menu: { md: true }` matches no node and does nothing, and a development build warns about it. Use the nested form, for example `themeDefaults={{ menu: { item: { md: true } } }}`.

## Props

| Prop | Category | Default | Description |
| --- | --- | --- | --- |
| `primary` | Appearance | yes | Primary color appearance (gray) |
| `accent` | Appearance |  | Accent color appearance (rose) |
| `secondary` | Appearance |  | Secondary color appearance (gray) |
| `tertiary` | Appearance |  | Tertiary color appearance |
| `success` | Appearance |  | Success color appearance (green) |
| `danger` | Appearance |  | Danger color appearance (red) |
| `warning` | Appearance |  | Warning color appearance (amber) |
| `info` | Appearance |  | Info color appearance (cyan) |
| `inheritAppearance` | Appearance |  | Inherit appearance from parent — suppresses own data-appearance/data-variant, uses parent's CSS variables |
| `flex1` | Flex |  | Take up remaining space (= `flex-1`, i.e. `flex: 1 1 0%`) |
| `flexAuto` | Flex |  | Grow but respect intrinsic size (= `flex-auto`, i.e. `flex: 1 1 auto`) |
| `flexNone` | Flex |  | Don't grow and don't shrink (= `flex-none`, i.e. `flex: none`) |
| `fontSans` | Font Family | yes | Sans-serif font family (default) — emits font-sans |
| `fontSerif` | Font Family |  | Serif font family — emits font-serif |
| `fontMono` | Font Family |  | Monospace font family — emits font-mono |
| `fontHeading` | Font Family |  | Heading font family (defaults to sans, customizable via --font-heading) — emits font-heading |
| `italic` | Font Style |  | Italic font style |
| `notItalic` | Font Style |  | Not italic (normal) font style |
| `fontThin` | Font Weight |  | Thin font weight (100) — emits font-thin |
| `fontExtralight` | Font Weight |  | Extra light font weight (200) — emits font-extralight |
| `fontLight` | Font Weight |  | Light font weight (300) — emits font-light |
| `fontNormal` | Font Weight |  | Normal font weight (400) — emits font-normal |
| `fontMedium` | Font Weight |  | Medium font weight (500) — emits font-medium |
| `fontSemibold` | Font Weight |  | Semibold font weight (600) — emits font-semibold |
| `fontBold` | Font Weight |  | Bold font weight (700) — emits font-bold |
| `fontExtrabold` | Font Weight |  | Extra bold font weight (800) — emits font-extrabold |
| `fontBlack` | Font Weight |  | Black font weight (900) — emits font-black |
| `padding` | Padding |  | Enable internal padding |
| `paddingX` | Padding |  | Enable only horizontal padding |
| `paddingY` | Padding |  | Enable only vertical padding |
| `noPadding` | Padding |  | Disable internal padding |
| `placeTop` | Placement |  | Position above anchor, centered horizontally (default) |
| `placeTopStart` | Placement |  | Position above anchor, aligned to start (left) |
| `placeTopEnd` | Placement |  | Position above anchor, aligned to end (right) |
| `placeBottom` | Placement |  | Position below anchor, centered horizontally |
| `placeBottomStart` | Placement | yes | Position below anchor, aligned to start (left) |
| `placeBottomEnd` | Placement |  | Position below anchor, aligned to end (right) |
| `placeLeft` | Placement |  | Position to the left of anchor, centered vertically |
| `placeLeftStart` | Placement |  | Position to the left of anchor, aligned to top |
| `placeLeftEnd` | Placement |  | Position to the left of anchor, aligned to bottom |
| `placeRight` | Placement |  | Position to the right of anchor, centered vertically |
| `placeRightStart` | Placement |  | Position to the right of anchor, aligned to top |
| `placeRightEnd` | Placement |  | Position to the right of anchor, aligned to bottom |
| `pill` | Shape |  | Fully rounded corners (circular) |
| `sharp` | Shape |  | No rounded corners (square) |
| `rounded` | Shape | yes | Medium rounded corners (default) |
| `noShrink` | Shrink |  | Prevent the flex item from shrinking below its content size (= `shrink-0`) |
| `xs` | Size |  | Extra small size |
| `sm` | Size |  | Small size |
| `md` | Size | yes | Medium size (default) |
| `lg` | Size |  | Large size |
| `xl` | Size |  | Extra large size |
| `skeleton` | Skeleton |  | Show the component as a loading placeholder in its own size and shape. On a container, every component inside it becomes a placeholder too |
| `textLeft` | Text Align |  | Align text to left (physical side, does not flip under RTL) |
| `textCenter` | Text Align |  | Align text to center |
| `textRight` | Text Align |  | Align text to right (physical side, does not flip under RTL) |
| `textJustify` | Text Align |  | Justify text |
| `textStart` | Text Align |  | Align text to the reading-direction start (left in LTR, right in RTL) |
| `textEnd` | Text Align |  | Align text to the reading-direction end (right in LTR, left in RTL) |
| `underline` | Text Decoration |  | Add underline decoration below text |
| `lineThrough` | Text Decoration |  | Add strikethrough/line-through decoration across text |
| `noUnderline` | Text Decoration |  | Remove ALL text-decoration — underline, line-through, and overline (text-decoration: none) |
| `overline` | Text Decoration |  | Add overline decoration above text |
| `uppercase` | Text Transform |  | Transform text to uppercase |
| `lowercase` | Text Transform |  | Transform text to lowercase |
| `capitalize` | Text Transform |  | Capitalize first letter of each word |
| `normalCase` | Text Transform |  | Normal text case (no transformation) |
| `truncate` | Truncate |  | Single line truncation with ellipsis |
| `lineClamp2` | Truncate |  | Truncate at 2 lines with ellipsis |
| `lineClamp3` | Truncate |  | Truncate at 3 lines with ellipsis |
| `lineClamp4` | Truncate |  | Truncate at 4 lines with ellipsis |
| `lineClamp5` | Truncate |  | Truncate at 5 lines with ellipsis |
| `noTruncate` | Truncate |  | Remove truncation |
| `filled` | Variant |  | Filled variant - solid background with contrasting text color |
| `outline` | Variant | yes | Outline variant - transparent background with border and colored text (default) |
| `ghost` | Variant |  | Ghost variant - transparent background, no border, appearance-colored text, tinted hover background |

Layout and utility props (Align Self, Border, Clamp Height, Constrain Width, Display, Flex Direction, Gap, Height, Hide, Items, Justify, Justify Self, Overflow, Pointer Events, Position, Responsive Sizing, Responsive Width, Ring, Shadow, Show, Transition, Transparent, Width, Wrap) are listed on [Common Props](https://vaneui.com/docs/reference/common-props.md).

## MenuItem props

| Prop | Category | Default | Description |
| --- | --- | --- | --- |
| `primary` | Appearance | yes | Primary color appearance (gray) |
| `accent` | Appearance |  | Accent color appearance (rose) |
| `secondary` | Appearance |  | Secondary color appearance (gray) |
| `tertiary` | Appearance |  | Tertiary color appearance |
| `success` | Appearance |  | Success color appearance (green) |
| `danger` | Appearance |  | Danger color appearance (red) |
| `warning` | Appearance |  | Warning color appearance (amber) |
| `info` | Appearance |  | Info color appearance (cyan) |
| `inheritAppearance` | Appearance |  | Inherit appearance from parent — suppresses own data-appearance/data-variant, uses parent's CSS variables |
| `disabled` | Disabled |  | Disable the component — reduces opacity, changes cursor to not-allowed, and prevents interaction |
| `flex1` | Flex |  | Take up remaining space (= `flex-1`, i.e. `flex: 1 1 0%`) |
| `flexAuto` | Flex |  | Grow but respect intrinsic size (= `flex-auto`, i.e. `flex: 1 1 auto`) |
| `flexNone` | Flex |  | Don't grow and don't shrink (= `flex-none`, i.e. `flex: none`) |
| `fontSans` | Font Family | yes | Sans-serif font family (default) — emits font-sans |
| `fontSerif` | Font Family |  | Serif font family — emits font-serif |
| `fontMono` | Font Family |  | Monospace font family — emits font-mono |
| `fontHeading` | Font Family |  | Heading font family (defaults to sans, customizable via --font-heading) — emits font-heading |
| `italic` | Font Style |  | Italic font style |
| `notItalic` | Font Style |  | Not italic (normal) font style |
| `fontThin` | Font Weight |  | Thin font weight (100) — emits font-thin |
| `fontExtralight` | Font Weight |  | Extra light font weight (200) — emits font-extralight |
| `fontLight` | Font Weight |  | Light font weight (300) — emits font-light |
| `fontNormal` | Font Weight |  | Normal font weight (400) — emits font-normal |
| `fontMedium` | Font Weight |  | Medium font weight (500) — emits font-medium |
| `fontSemibold` | Font Weight |  | Semibold font weight (600) — emits font-semibold |
| `fontBold` | Font Weight |  | Bold font weight (700) — emits font-bold |
| `fontExtrabold` | Font Weight |  | Extra bold font weight (800) — emits font-extrabold |
| `fontBlack` | Font Weight |  | Black font weight (900) — emits font-black |
| `inheritSize` | Inherit Size |  | Inherit font-size and line-height from the nearest parent typography element |
| `noInheritSize` | Inherit Size |  | Keep own font-size; do not inherit from parent |
| `padding` | Padding | yes | Enable internal padding |
| `paddingX` | Padding |  | Enable only horizontal padding |
| `paddingY` | Padding |  | Enable only vertical padding |
| `noPadding` | Padding |  | Disable internal padding |
| `pill` | Shape |  | Fully rounded corners (circular) |
| `sharp` | Shape |  | No rounded corners (square) |
| `rounded` | Shape | yes | Medium rounded corners (default) |
| `noShrink` | Shrink |  | Prevent the flex item from shrinking below its content size (= `shrink-0`) |
| `xs` | Size |  | Extra small size |
| `sm` | Size | yes | Small size |
| `md` | Size |  | Medium size (default) |
| `lg` | Size |  | Large size |
| `xl` | Size |  | Extra large size |
| `skeleton` | Skeleton |  | Show the component as a loading placeholder in its own size and shape. On a container, every component inside it becomes a placeholder too |
| `textLeft` | Text Align | yes | Align text to left (physical side, does not flip under RTL) |
| `textCenter` | Text Align |  | Align text to center |
| `textRight` | Text Align |  | Align text to right (physical side, does not flip under RTL) |
| `textJustify` | Text Align |  | Justify text |
| `textStart` | Text Align |  | Align text to the reading-direction start (left in LTR, right in RTL) |
| `textEnd` | Text Align |  | Align text to the reading-direction end (right in LTR, left in RTL) |
| `underline` | Text Decoration |  | Add underline decoration below text |
| `lineThrough` | Text Decoration |  | Add strikethrough/line-through decoration across text |
| `noUnderline` | Text Decoration |  | Remove ALL text-decoration — underline, line-through, and overline (text-decoration: none) |
| `overline` | Text Decoration |  | Add overline decoration above text |
| `uppercase` | Text Transform |  | Transform text to uppercase |
| `lowercase` | Text Transform |  | Transform text to lowercase |
| `capitalize` | Text Transform |  | Capitalize first letter of each word |
| `normalCase` | Text Transform |  | Normal text case (no transformation) |
| `filled` | Variant |  | Filled variant - solid background with contrasting text color |
| `outline` | Variant | yes | Outline variant - transparent background with border and colored text (default) |
| `ghost` | Variant |  | Ghost variant - transparent background, no border, appearance-colored text, tinted hover background |
| `breakNormal` | Word Break |  | Reset breaking - overflow-wrap and word-break normal |
| `breakWords` | Word Break |  | Break long words to prevent overflow - overflow-wrap: break-word |
| `breakAll` | Word Break |  | Break between any two characters - word-break: break-all |
| `breakKeep` | Word Break |  | Do not break CJK text - word-break: keep-all |

Layout and utility props (Border, Cursor, Display, Flex Direction, Focus Visible, Gap, Height, Hide, Items, Justify, Overflow, Position, Responsive Sizing, Responsive Width, Ring, Shadow, Show, Transition, Transparent, Whitespace, Width, Wrap) are listed on [Common Props](https://vaneui.com/docs/reference/common-props.md).

## MenuLabel props

| Prop | Category | Default | Description |
| --- | --- | --- | --- |
| `primary` | Appearance |  | Primary color appearance (gray) |
| `accent` | Appearance |  | Accent color appearance (rose) |
| `secondary` | Appearance | yes | Secondary color appearance (gray) |
| `tertiary` | Appearance |  | Tertiary color appearance |
| `success` | Appearance |  | Success color appearance (green) |
| `danger` | Appearance |  | Danger color appearance (red) |
| `warning` | Appearance |  | Warning color appearance (amber) |
| `info` | Appearance |  | Info color appearance (cyan) |
| `inheritAppearance` | Appearance |  | Inherit appearance from parent — suppresses own data-appearance/data-variant, uses parent's CSS variables |
| `disabled` | Disabled |  | Disable the component — reduces opacity, changes cursor to not-allowed, and prevents interaction |
| `flex1` | Flex |  | Take up remaining space (= `flex-1`, i.e. `flex: 1 1 0%`) |
| `flexAuto` | Flex |  | Grow but respect intrinsic size (= `flex-auto`, i.e. `flex: 1 1 auto`) |
| `flexNone` | Flex |  | Don't grow and don't shrink (= `flex-none`, i.e. `flex: none`) |
| `fontSans` | Font Family | yes | Sans-serif font family (default) — emits font-sans |
| `fontSerif` | Font Family |  | Serif font family — emits font-serif |
| `fontMono` | Font Family |  | Monospace font family — emits font-mono |
| `fontHeading` | Font Family |  | Heading font family (defaults to sans, customizable via --font-heading) — emits font-heading |
| `italic` | Font Style |  | Italic font style |
| `notItalic` | Font Style |  | Not italic (normal) font style |
| `fontThin` | Font Weight |  | Thin font weight (100) — emits font-thin |
| `fontExtralight` | Font Weight |  | Extra light font weight (200) — emits font-extralight |
| `fontLight` | Font Weight |  | Light font weight (300) — emits font-light |
| `fontNormal` | Font Weight |  | Normal font weight (400) — emits font-normal |
| `fontMedium` | Font Weight |  | Medium font weight (500) — emits font-medium |
| `fontSemibold` | Font Weight |  | Semibold font weight (600) — emits font-semibold |
| `fontBold` | Font Weight |  | Bold font weight (700) — emits font-bold |
| `fontExtrabold` | Font Weight |  | Extra bold font weight (800) — emits font-extrabold |
| `fontBlack` | Font Weight |  | Black font weight (900) — emits font-black |
| `inheritSize` | Inherit Size |  | Inherit font-size and line-height from the nearest parent typography element |
| `noInheritSize` | Inherit Size |  | Keep own font-size; do not inherit from parent |
| `padding` | Padding | yes | Enable internal padding |
| `paddingX` | Padding |  | Enable only horizontal padding |
| `paddingY` | Padding |  | Enable only vertical padding |
| `noPadding` | Padding |  | Disable internal padding |
| `pill` | Shape |  | Fully rounded corners (circular) |
| `sharp` | Shape |  | No rounded corners (square) |
| `rounded` | Shape | yes | Medium rounded corners (default) |
| `noShrink` | Shrink |  | Prevent the flex item from shrinking below its content size (= `shrink-0`) |
| `xs` | Size |  | Extra small size |
| `sm` | Size | yes | Small size |
| `md` | Size |  | Medium size (default) |
| `lg` | Size |  | Large size |
| `xl` | Size |  | Extra large size |
| `skeleton` | Skeleton |  | Show the component as a loading placeholder in its own size and shape. On a container, every component inside it becomes a placeholder too |
| `textLeft` | Text Align | yes | Align text to left (physical side, does not flip under RTL) |
| `textCenter` | Text Align |  | Align text to center |
| `textRight` | Text Align |  | Align text to right (physical side, does not flip under RTL) |
| `textJustify` | Text Align |  | Justify text |
| `textStart` | Text Align |  | Align text to the reading-direction start (left in LTR, right in RTL) |
| `textEnd` | Text Align |  | Align text to the reading-direction end (right in LTR, left in RTL) |
| `underline` | Text Decoration |  | Add underline decoration below text |
| `lineThrough` | Text Decoration |  | Add strikethrough/line-through decoration across text |
| `noUnderline` | Text Decoration |  | Remove ALL text-decoration — underline, line-through, and overline (text-decoration: none) |
| `overline` | Text Decoration |  | Add overline decoration above text |
| `uppercase` | Text Transform |  | Transform text to uppercase |
| `lowercase` | Text Transform |  | Transform text to lowercase |
| `capitalize` | Text Transform |  | Capitalize first letter of each word |
| `normalCase` | Text Transform |  | Normal text case (no transformation) |
| `filled` | Variant |  | Filled variant - solid background with contrasting text color |
| `outline` | Variant | yes | Outline variant - transparent background with border and colored text (default) |
| `ghost` | Variant |  | Ghost variant - transparent background, no border, appearance-colored text, tinted hover background |
| `breakNormal` | Word Break |  | Reset breaking - overflow-wrap and word-break normal |
| `breakWords` | Word Break |  | Break long words to prevent overflow - overflow-wrap: break-word |
| `breakAll` | Word Break |  | Break between any two characters - word-break: break-all |
| `breakKeep` | Word Break |  | Do not break CJK text - word-break: keep-all |

Layout and utility props (Border, Cursor, Display, Flex Direction, Focus Visible, Gap, Height, Hide, Items, Justify, Overflow, Position, Responsive Sizing, Responsive Width, Ring, Shadow, Show, Transition, Whitespace, Width, Wrap) are listed on [Common Props](https://vaneui.com/docs/reference/common-props.md).
