# Menu Button and Menu

> MenuButton opens a Menu of items, checkable items, groups, separators and submenus, with the APG menu button keyboard model, typeahead, RTL and lazy popups.

Canonical: https://salmonui.dev/docs/buttons/menu-button

```tsx
import { MenuButton, MenuItem, MenuSeparator, Submenu } from '@salmonui/buttons/menu';
import '@salmonui/buttons/button/styles.css';
import '@salmonui/buttons/menu/styles.css';

<MenuButton
  onAction={(event) => console.log(event.id)}
  menu={
    <>
      <MenuItem id="new">New file</MenuItem>
      <MenuItem id="open">Open…</MenuItem>
      <MenuSeparator />
      <Submenu label="Export">
        <MenuItem id="pdf">PDF</MenuItem>
        <MenuItem id="csv">CSV</MenuItem>
      </Submenu>
    </>
  }
>
  File
</MenuButton>
```

`MenuButton` is a `Button` (same `tone`, `variant`, `size`, `iconStart`,
`iconEnd`, `iconOnly` and `disabled`) whose `children` are the
trigger content. A trailing chevron shows the open state;
`indicator` replaces it and `indicator={false}` hides it. While the
menu is open the trigger has `aria-expanded="true"`, `aria-controls` and
`data-open`. `ref` is the trigger `<button>`.

The menu content is either JSX in the `menu` prop or data in `items`.
JSX wins when both are given, with a development warning. `Menu`
renders the same list in place, without a button, with JSX
`children` or `items`.

### Live demo: Menu Button

Live demo: https://salmonui.dev/demos/buttons/menu-button

A MenuButton with JSX items, a link item, a submenu and a labelled group, and a second one built from an `items` array with a disabled item and bottom-end placement.

`Demo.tsx`:

```tsx
'use client';
import { useState } from 'react';
import { MenuButton, MenuGroup, MenuItem, MenuSeparator, Submenu, type MenuItemData } from '@salmonui/buttons/menu';

const editItems: MenuItemData[] = [
  { id: 'cut', label: 'Cut' },
  { id: 'copy', label: 'Copy' },
  { id: 'paste', label: 'Paste', disabled: true },
  { type: 'separator' },
  { id: 'find', label: 'Find', items: [{ id: 'find-next', label: 'Find next' }, { id: 'replace', label: 'Replace…' }] },
];

export default function MenuButtonDemo() {
  const [last, setLast] = useState('nothing yet');
  return (
    <div>
      <div className="demo-toolbar">
        <MenuButton
          tone="primary"
          onAction={(event) => setLast(`${event.id} (${event.source})`)}
          menu={
            <>
              <MenuItem id="new">New file</MenuItem>
              <MenuItem id="open">Open…</MenuItem>
              <MenuItem id="docs" href="#menu-button">
                Documentation
              </MenuItem>
              <MenuSeparator />
              <Submenu label="Export">
                <MenuItem id="pdf">PDF</MenuItem>
                <MenuItem id="csv">CSV</MenuItem>
              </Submenu>
              <MenuSeparator />
              <MenuGroup label="Recent">
                <MenuItem id="report">report.xlsx</MenuItem>
                <MenuItem id="notes">notes.md</MenuItem>
              </MenuGroup>
            </>
          }
        >
          File
        </MenuButton>
        <MenuButton variant="outline" items={editItems} placement="bottom-end" onAction={(event) => setLast(`${event.id} (${event.source})`)}>
          Edit
        </MenuButton>
      </div>
      <p>
        Last action: <output>{last}</output>
      </p>
    </div>
  );
}
```

## Items

| Component | Role | Notes |
| --- | --- | --- |
| `MenuItem` | `menuitem` | `id` (required, stable, reported in `onAction`, rendered as `data-item-id`), `icon`, `disabled`, `href` / `target` render `<a role="menuitem">`, `render` for router links, `textValue` for typeahead |
| `MenuCheckboxItem` | `menuitemcheckbox` | `checked` / `defaultChecked` / `onCheckedChange(checked, event)`; optional `id` for `onAction`, whose item handler runs after the toggle |
| `MenuRadioGroup` + `MenuRadioItem` | `group` + `menuitemradio` | `value` / `defaultValue` / `onValueChange(value, event)` and an optional visible `label` on the group; `value` per item (also its `onAction` id unless `id` is set) |
| `MenuGroup` | `group` | `label` is visible and names the group through `aria-labelledby` |
| `MenuSeparator` | `separator` | never focusable |
| `Submenu` | `menuitem` with `aria-haspopup="menu"` | `label`, `icon`, `disabled`, `textValue`; `menuClassName` / `menuStyle` style the nested popup; its children are the nested entries |

Item content is any `ReactNode`. The `items` form takes
`MenuItemData` entries: `{ id, label, icon, disabled, href, target, title,
textValue }`, `{ type: 'separator' }`, `{ type: 'group', label, items }`, and
an entry with `items` is a submenu; `renderItem(item)` customizes the content
of each entry. Router links use `render`, which receives every computed prop
(role, `tabIndex`, ARIA, handlers, a callback `ref`) and must spread them:

```tsx
<MenuItem id="settings" render={(props) => <Link {...props} to="/settings" />}>Settings</MenuItem>
```

Styling hooks: `.salmon-menu` on the popup, `.salmon-menu-item` with
`data-highlighted`, `data-disabled` and `data-checked`, `.salmon-menu-separator`,
`.salmon-menu-group`, `.salmon-menu-group-label`. `className` and
`style` reach each item; `classNames.menu` / `styles.menu` reach the popup,
whose default minimum width is the trigger width.

### Live demo: Menu items from data

Live demo: https://salmonui.dev/demos/buttons/menu-items-data

MenuButtons built from `items` - item icons, a `renderItem` template with counts, a wider popup through `styles.menu`, trigger tone, variant, size and icon, and a custom or hidden open indicator.

`Demo.tsx`:

```tsx
'use client';

import { useState } from 'react';
import { MenuButton, type MenuItemData } from '@salmonui/buttons/menu';

const Icon = ({ d }: { readonly d: string }) => (
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" aria-hidden="true">
    <path d={d} />
  </svg>
);

const PLUS = 'M8 3v10M3 8h10';
const COPY = 'M5 5h8v8H5zM3 11V3h8';
const TRASH = 'M3 4h10M6 4V2h4v2M5 4l1 10h4l1-10';

const STATUS: MenuItemData[] = [
  { id: 'todo', label: 'To do', textValue: 'To do' },
  { id: 'doing', label: 'In progress', textValue: 'In progress' },
  { id: 'done', label: 'Done', textValue: 'Done' },
];

const COUNTS: Record<string, number> = { todo: 12, doing: 4, done: 31 };

// The data form with icons, a renderItem template, the trigger's tone /
// variant / size / iconStart, custom and hidden indicators and a wider popup.
export default function MenuItemsDataDemo() {
  const [last, setLast] = useState('nothing yet');
  const onAction = (event: { id: string; item: MenuItemData | undefined }) => setLast(`id "${event.id}"${event.item ? `, label "${String(event.item.label)}"` : ''}`);
  return (
    <div>
      <div className="demo-toolbar">
        <MenuButton
          tone="primary"
          size="sm"
          iconStart={<Icon d={PLUS} />}
          onAction={onAction}
          items={[
            { id: 'new-task', label: 'Task', icon: <Icon d={PLUS} /> },
            { id: 'duplicate', label: 'Duplicate selected', icon: <Icon d={COPY} /> },
            { type: 'separator' },
            { id: 'delete', label: 'Delete selected', icon: <Icon d={TRASH} />, disabled: true },
          ]}
        >
          New
        </MenuButton>
        <MenuButton
          variant="outline"
          size="sm"
          items={STATUS}
          onAction={onAction}
          styles={{ menu: { minInlineSize: 240 } }}
          renderItem={(item) => (
            <span style={{ display: 'flex', justifyContent: 'space-between', inlineSize: '100%', gap: 16 }}>
              <span>{item.label}</span>
              <span aria-hidden="true">{item.id ? COUNTS[item.id] : null}</span>
            </span>
          )}
          indicator={<span aria-hidden="true">▾</span>}
        >
          Status
        </MenuButton>
        <MenuButton variant="ghost" size="sm" tone="danger" indicator={false} items={[{ id: 'archive', label: 'Archive project' }, { id: 'remove', label: 'Remove project' }]} onAction={onAction}>
          Danger zone
        </MenuButton>
      </div>
      <p>
        Last action: <output>{last}</output>
      </p>
    </div>
  );
}
```

### Live demo: Checkable menu items

Live demo: https://salmonui.dev/demos/buttons/menu-checkable

Controlled MenuCheckboxItem and MenuRadioGroup items in a MenuButton; Space toggles and keeps the menu open.

`Demo.tsx`:

```tsx
'use client';
import { useState } from 'react';
import { MenuButton, MenuCheckboxItem, MenuRadioGroup, MenuRadioItem, MenuSeparator } from '@salmonui/buttons/menu';

export default function MenuCheckableDemo() {
  const [wrap, setWrap] = useState(true);
  const [minimap, setMinimap] = useState(false);
  const [zoom, setZoom] = useState('100');
  return (
    <div>
      <div className="demo-toolbar">
        <MenuButton
          variant="outline"
          menu={
            <>
              <MenuCheckboxItem checked={wrap} onCheckedChange={setWrap}>
                Word wrap
              </MenuCheckboxItem>
              <MenuCheckboxItem checked={minimap} onCheckedChange={setMinimap}>
                Minimap
              </MenuCheckboxItem>
              <MenuSeparator />
              <MenuRadioGroup label="Zoom" value={zoom} onValueChange={setZoom}>
                <MenuRadioItem value="75">75%</MenuRadioItem>
                <MenuRadioItem value="100">100%</MenuRadioItem>
                <MenuRadioItem value="150">150%</MenuRadioItem>
              </MenuRadioGroup>
            </>
          }
        >
          View
        </MenuButton>
      </div>
      <p>
        Word wrap {wrap ? 'on' : 'off'}, minimap {minimap ? 'on' : 'off'}, zoom {zoom}%. Space toggles an item and keeps the menu open; Enter toggles and closes.
      </p>
    </div>
  );
}
```

## Opening, closing and actions

- `open` / `defaultOpen` / `onOpenChange(open, event)`: the event has
  `reason` (`'trigger' | 'escape' | 'outside' | 'action' | 'tab'`) and
  `source` (`'pointer' | 'keyboard' | 'touch' | 'api'`). A controlled menu
  vetoes a change by not updating `open`, which
  is how you cancel opening or closing.
  `defaultOpen` applies after hydration, so server and client markup match.
- `onAction(event)` on `MenuButton` / `Menu`, and per item, fires for a
  chosen item at any level with `{ id, item, source }`. The item handler runs
  first. `event.preventDefault()` keeps the menu open, and on a link item it
  also stops navigation.
- `placement`: `'bottom-start'` (default), `'bottom-end'`, `'top-start'`,
  `'top-end'`; logical, so `start` is the right edge under `dir="rtl"`. The
  popup flips to the other side and shifts to stay in the viewport, and
  follows the trigger while the page scrolls.
- `submenuOpen`: `'hover'` (default; a submenu opens after the pointer rests
  on its item for `hoverDelay` ms, default 200) or `'click'`. The keyboard
  always opens submenus.
- The popup is portaled to the trigger's `document.body` (or `container`)
  and uses the browser top layer where supported. A closed menu renders no
  markup on the server or the client, whatever the item count.
- The menu closes on an item action, Escape, Tab, and a pointer press
  outside it (submenus count as inside). Other DOM events do not
  close it: drive the controlled `open` for that.

### Live demo: Menu open state, keyboard and ARIA

Live demo: https://salmonui.dev/demos/buttons/menu-open-state

A controlled MenuButton that logs every onOpenChange reason and source, can veto closing on an outside press, and reads back the trigger's ARIA and data attributes and the menu markup in the page.

`Demo.tsx`:

```tsx
'use client';

import { useEffect, useRef, useState, type CSSProperties } from 'react';
import { Checkbox } from '@salmonui/inputs/checkbox';
import { MenuButton, MenuItem, MenuSeparator, type MenuOpenChangeEvent } from '@salmonui/buttons/menu';

const FRUITS = ['Apple', 'Apricot', 'Banana', 'Blackberry', 'Blueberry', 'Cherry'];

interface Readout {
  readonly expanded: string;
  readonly controls: string;
  readonly dataOpen: string;
  readonly popup: string;
  readonly roles: string;
  readonly menus: number;
}

// The readout as a two-column label / value list.
const DL: CSSProperties = { display: 'grid', gridTemplateColumns: 'minmax(0, max-content) minmax(0, 1fr)', gap: '4px 16px', margin: 0 };
const DT: CSSProperties = { color: 'var(--salmon-text-secondary)' };
const DD: CSSProperties = { margin: 0, overflowWrap: 'anywhere' };

const INITIAL: Readout = { expanded: 'false', controls: '(absent)', dataOpen: '(absent)', popup: '(none)', roles: '(none)', menus: 0 };

// A controlled menu with a veto, an onOpenChange log, and a readout of the
// rendered ARIA read from the DOM after each change (not echoed from state).
export default function MenuOpenStateDemo() {
  const [open, setOpen] = useState(false);
  const [keepOpen, setKeepOpen] = useState(false);
  const [log, setLog] = useState<readonly string[]>([]);
  const [chosen, setChosen] = useState('nothing yet');
  const [readout, setReadout] = useState<Readout>(INITIAL);
  const triggerRef = useRef<HTMLButtonElement>(null);

  const onOpenChange = (next: boolean, event: MenuOpenChangeEvent) => {
    const vetoed = !next && keepOpen && event.reason === 'outside';
    setLog((entries) => [`${next ? 'open' : 'close'}: reason ${event.reason}, source ${event.source}${vetoed ? ' (vetoed)' : ''}`, ...entries].slice(0, 6));
    if (!vetoed) setOpen(next);
  };

  useEffect(() => {
    const frame = requestAnimationFrame(() => {
      const trigger = triggerRef.current;
      if (!trigger) return;
      const controls = trigger.getAttribute('aria-controls');
      const popup = controls ? document.getElementById(controls) : null;
      const roles = popup ? [...new Set([...popup.querySelectorAll('[role]')].map((el) => el.getAttribute('role')))].join(', ') : '(none)';
      setReadout({
        expanded: trigger.getAttribute('aria-expanded') ?? '(absent)',
        controls: controls ? 'the popup id' : '(absent)',
        dataOpen: trigger.hasAttribute('data-open') ? 'present' : '(absent)',
        popup: popup ? `role="${popup.getAttribute('role')}", labelled by the trigger: ${String(popup.getAttribute('aria-labelledby') === trigger.id)}` : '(none)',
        roles,
        menus: document.querySelectorAll(`[role="menu"][aria-labelledby="${CSS.escape(trigger.id)}"]`).length,
      });
    });
    return () => cancelAnimationFrame(frame);
  }, [open]);

  return (
    <div>
      <div className="demo-toolbar">
        <MenuButton
          ref={triggerRef}
          open={open}
          onOpenChange={onOpenChange}
          onAction={(event) => setChosen(event.id)}
          menu={
            <>
              {FRUITS.map((fruit) => (
                <MenuItem key={fruit} id={fruit.toLowerCase()}>
                  {fruit}
                </MenuItem>
              ))}
              <MenuSeparator />
              <MenuItem id="durian" disabled>
                Durian
              </MenuItem>
              <MenuItem id="elderberry">Elderberry</MenuItem>
            </>
          }
        >
          Fruit
        </MenuButton>
        <Checkbox checked={keepOpen} onCheckedChange={(checked) => setKeepOpen(checked)}>
          Keep open on outside press
        </Checkbox>
      </div>
      <p>
        Chosen: <output>{chosen}</output>
      </p>
      <dl style={DL}>
        <dt style={DT}>Trigger aria-expanded</dt>
        <dd style={DD}>{readout.expanded}</dd>
        <dt style={DT}>Trigger aria-controls</dt>
        <dd style={DD}>{readout.controls}</dd>
        <dt style={DT}>Trigger data-open</dt>
        <dd style={DD}>{readout.dataOpen}</dd>
        <dt style={DT}>Popup</dt>
        <dd style={DD}>{readout.popup}</dd>
        <dt style={DT}>Roles inside the popup</dt>
        <dd style={DD}>{readout.roles}</dd>
        <dt style={DT}>Menus for this trigger in the page</dt>
        <dd style={DD}>{readout.menus}</dd>
      </dl>
      <div className="demo-log">
        <ol aria-label="onOpenChange log (newest first)">
          {log.map((entry, index) => (
            <li key={log.length - index}>{entry}</li>
          ))}
        </ol>
        {log.length === 0 ? 'Open or close the menu to log onOpenChange.' : null}
      </div>
    </div>
  );
}
```

## Keyboard

| Key | On the trigger | In the menu |
| --- | --- | --- |
| Enter, Space, ArrowDown, Alt+ArrowDown | Open, focus the first item | Enter / Space activate the item and close; Space on a checkbox or radio item toggles and keeps the menu open |
| ArrowUp | Open, focus the last item | Previous item, wrapping |
| ArrowDown | | Next item, wrapping; separators and disabled items are skipped |
| Home / End | | First / last enabled item |
| Printable characters | | Typeahead: the next enabled item whose text starts with the typed characters (500 ms buffer, case and accent insensitive; a repeated letter cycles) |
| ArrowRight (ArrowLeft in RTL) | | Open the submenu and focus its first item |
| ArrowLeft (ArrowRight in RTL) | | Close the submenu, focus its item |
| Escape, Alt+ArrowUp | | Close the current level; focus returns to the trigger or the submenu item |
| Tab / Shift+Tab | | Close and move focus to the element after / before the trigger |

The pointer highlights the item under it. A submenu opens after the pointer
rests on its item for 200 ms (`hoverDelay`) and closes 200 ms after the
pointer rests on a sibling, so a diagonal move into the submenu keeps it open.
A click on a submenu item opens it at once.

## Standalone menus and RTL

`Menu` renders the same `role="menu"` list in place, with one tab stop and
the same keys, for menus that are always visible. It takes JSX
`children` or `items`, `renderItem`, `onAction`, `submenuOpen`,
`hoverDelay`, `className`, `style` and `aria-label` / `aria-labelledby`.
Under `dir="rtl"` the popup placement, the submenu side and the
ArrowLeft / ArrowRight submenu keys mirror.

### Live demo: Standalone menu and RTL menus

Live demo: https://salmonui.dev/demos/buttons/menu-standalone-rtl

A Menu rendered in place without a button, and a MenuButton with a submenu inside a right-to-left container whose popup and submenu mirror.

`Demo.tsx`:

```tsx
'use client';

import { useState } from 'react';
import { Menu, MenuButton, MenuItem, MenuSeparator, Submenu } from '@salmonui/buttons/menu';

// A Menu rendered in place (no button), and a MenuButton with a submenu inside
// a right-to-left container: the popup aligns to the inline start (the right
// edge) and the submenu opens to the left.
export default function MenuStandaloneRtlDemo() {
  const [last, setLast] = useState('nothing yet');
  return (
    <div style={{ display: 'grid', gap: 16 }}>
      <div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'flex-start', gap: 24 }}>
        <Menu aria-label="Account" onAction={(event) => setLast(event.id)} style={{ minInlineSize: 200 }}>
          <MenuItem id="profile">Profile</MenuItem>
          <MenuItem id="billing">Billing</MenuItem>
          <Submenu label="Theme">
            <MenuItem id="theme-light">Light</MenuItem>
            <MenuItem id="theme-dark">Dark</MenuItem>
          </Submenu>
          <MenuSeparator />
          <MenuItem id="sign-out">Sign out</MenuItem>
        </Menu>
        <div dir="rtl" lang="ar" style={{ flex: '1 1 240px', display: 'flex' }}>
          <MenuButton
            variant="outline"
            onAction={(event) => setLast(event.id)}
            menu={
              <>
                <MenuItem id="ar-new">جديد</MenuItem>
                <MenuItem id="ar-open">فتح</MenuItem>
                <Submenu label="تصدير">
                  <MenuItem id="ar-pdf">PDF</MenuItem>
                  <MenuItem id="ar-csv">CSV</MenuItem>
                </Submenu>
              </>
            }
          >
            ملف
          </MenuButton>
        </div>
      </div>
      <p style={{ margin: 0 }}>
        Last action: <output>{last}</output>
      </p>
    </div>
  );
}
```

## Accessibility

The trigger follows the APG Menu Button pattern (`aria-haspopup="menu"`,
`aria-expanded`, `aria-controls` while open). Its name comes from its
content; an `iconOnly` trigger needs `aria-label`. The popup itself
has `role="menu"` and is labelled by the trigger. Items are `menuitem`,
`menuitemcheckbox` or `menuitemradio` with `aria-checked`, inside `group`s.
Disabled items keep `aria-disabled="true"` and are
skipped by arrow keys and typeahead. When every item is disabled, the menu
itself takes focus so Escape and Tab still work.

## Performance

Menus are not virtualized. Focus, highlight, typeahead and hover
intent work on the DOM and in refs, so arrow keys and pointer moves never
re-render the items. Item labels are folded once per open, not per
keystroke. With 1,000 items, opening stays within 100 ms and each arrow or
typeahead keystroke within 8 ms. Long pickable
lists belong to the Listbox component.

### Live demo: Long menu

Live demo: https://salmonui.dev/demos/buttons/menu-long

A MenuButton with 100 or 1,000 items (menus are not virtualized), showing the time from the open request to the first frame with the menu.

`Demo.tsx`:

```tsx
'use client';

import { useEffect, useMemo, useRef, useState } from 'react';
import { MenuButton, type MenuItemData } from '@salmonui/buttons/menu';
import { Select } from '@salmonui/dropdowns/select';

const SIZES = [100, 1000] as const;
const SIZE_OPTIONS = SIZES.map((n) => ({ value: String(n), label: n.toLocaleString('en-US') }));

function makeItems(count: number): MenuItemData[] {
  return Array.from({ length: count }, (_, index) => ({ id: `customer-${index + 1}`, label: `Customer ${String(index + 1).padStart(4, '0')}` }));
}

// A menu that is not virtualized: 100 or 1,000 items, with the time from the
// open request to the first frame that shows the menu.
export default function MenuLongDemo() {
  const [size, setSize] = useState<(typeof SIZES)[number]>(1000);
  const items = useMemo(() => makeItems(size), [size]);
  const [open, setOpen] = useState(false);
  const [openMs, setOpenMs] = useState<number | null>(null);
  const [last, setLast] = useState('nothing yet');
  const started = useRef<number | null>(null);

  useEffect(() => {
    if (!open || started.current === null) return;
    const begin = started.current;
    started.current = null;
    const frame = requestAnimationFrame(() => setOpenMs(performance.now() - begin));
    return () => cancelAnimationFrame(frame);
  }, [open]);

  return (
    <div>
      <div className="demo-toolbar">
        <label>
          Items{' '}
          <Select aria-label="Items" data={SIZE_OPTIONS} value={String(size)} onValueChange={(value) => value != null && setSize(Number(value) as (typeof SIZES)[number])} />
        </label>
        <MenuButton
          items={items}
          open={open}
          onOpenChange={(next) => {
            if (next) started.current = performance.now();
            setOpen(next);
          }}
          onAction={(event) => setLast(event.id)}
          styles={{ menu: { maxBlockSize: 320, overflowY: 'auto' } }}
        >
          Assign to customer
        </MenuButton>
      </div>
      <p>
        Open to first frame: <output>{openMs === null ? 'open the menu' : `${openMs.toFixed(1)} ms`}</output>
      </p>
      <p>
        Chosen: <output>{last}</output>
      </p>
    </div>
  );
}
```

## SSR

`MenuButton` and `SplitButton` render only their trigger on the server and
while closed, whatever the item count, and `defaultOpen` applies after
hydration; a standalone `Menu` renders its list on the server. Both
hydrate without warnings.

## Design notes

- The trigger has no icon-above-label layout; compose the content.
- For arbitrary popup content instead of menu items, use a
  [Popover](https://salmonui.dev/docs/layout/popover): a `Popover.Trigger` rendering a `Button`
  and the content in `Popover.Content`, with dialog semantics instead of
  menu semantics.
- Opening and closing use one fixed CSS transition with no animation
  options. Customize item rendering with JSX or `renderItem`.
There are no imperative add, remove or toggle methods: change
  `items` or `open`.

## API reference

[`@salmonui/buttons/menu`](https://salmonui.dev/docs/reference/buttons/menu): `MenuButton`, `Menu`,
`MenuItem`, `MenuCheckboxItem`, `MenuRadioGroup`, `MenuRadioItem`,
`MenuGroup`, `MenuSeparator`, `Submenu` and their types. The menu button
needs both `@salmonui/buttons/button/styles.css` and
`@salmonui/buttons/menu/styles.css`.
