# SplitButtonProps (@salmonui/buttons/menu)

> The SplitButtonProps interface of @salmonui/buttons/menu.

Canonical: https://salmonui.dev/docs/reference/buttons/menu/SplitButtonProps

```ts
import type { SplitButtonProps } from '@salmonui/buttons/menu';
```

Entry index: https://salmonui.dev/docs/reference/buttons/menu (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/buttons/menu.md).

## Reference

Kind: interface

```ts
interface SplitButtonProps extends MenuButtonMenuProps, Omit<ButtonBaseProps, 'children' | 'ref' | 'className' | 'style' | 'render' | 'repeat' | 'onRepeat' | 'iconOnly' | 'floating' | 'floatingScope'> {
    readonly children?: ReactNode;
    readonly menuLabel?: string;
    readonly indicator?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly classNames?: Partial<Record<SplitButtonPart, string>>;
    readonly styles?: Partial<Record<SplitButtonPart, CSSProperties>>;
    readonly ref?: Ref<HTMLButtonElement>;
}
```

Members (29):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `menu` | `menu?: ReactNode;` | optional, inherited | Menu entries as JSX (`MenuItem`, `MenuCheckboxItem`, `MenuRadioGroup`, `MenuGroup`, `MenuSeparator`, `Submenu`). Wins over `items`. |
| `items` | `items?: readonly MenuItemData[];` | optional, inherited | Data form of the menu entries. |
| `renderItem` | `renderItem?: ((item: MenuItemData) => ReactNode);` | optional, inherited | Content of each `items` entry (default: its `label`). |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited | Applied after hydration (server and client markup stay identical). |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: MenuOpenChangeEvent) => void);` | optional, inherited |  |
| `children` | `readonly children?: ReactNode;` | optional | Primary button content (also the group's accessible name). |
| `menuLabel` | `readonly menuLabel?: string;` | optional | Accessible name of the menu trigger (default `"More options"`). |
| `indicator` | `readonly indicator?: ReactNode;` | optional | Trigger content (default chevron). |
| `className` | `readonly className?: string;` | optional | Root (`role="group"`) class and style. |
| `style` | `readonly style?: CSSProperties;` | optional |  |
| `classNames` | `readonly classNames?: Partial<Record<SplitButtonPart, string>>;` | optional |  |
| `styles` | `readonly styles?: Partial<Record<SplitButtonPart, CSSProperties>>;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLButtonElement>;` | optional | The primary `<button>`. |
| `variant` | `variant?: ButtonVariant;` | optional, inherited | Visual weight. Default `'solid'` (or the group's). |
| `tone` | `tone?: ButtonTone;` | optional, inherited | Color role. Default `'neutral'`; `'primary'` for a `floating` button (or the group's). |
| `size` | `size?: ButtonSize;` | optional, inherited | Metric set. Default `'md'` (or the group's). |
| `iconStart` | `iconStart?: ReactNode;` | optional, inherited | Decorative icon before the label (inline-start; follows `dir`). |
| `iconEnd` | `iconEnd?: ReactNode;` | optional, inherited | Decorative icon after the label (inline-end; follows `dir`). |
| `loading` | `loading?: boolean;` | optional, inherited | Shows a spinner, sets `aria-busy` and `aria-disabled` (focus is kept) and ignores activation. |
| `loadingLabel` | `loadingLabel?: string;` | optional, inherited | Visually hidden text appended to the name while `loading`. Default `"Loading"`. |
| `spinner` | `spinner?: ReactNode;` | optional, inherited | Replaces the built-in spinner graphic. |
| `progress` | `progress?: number;` | optional, inherited | Progress fill from inline-start, 0 to 100. No spinner unless `loading`. |
| `progressLabel` | `progressLabel?: ((value: number) => string);` | optional, inherited | Visually hidden progress text appended to the name. Default `` `${value}%` ``. |
| `onAction` | `onAction?: ((event: MenuActionEvent) => void);` | optional, inherited | A chosen item (any level); `event.preventDefault()` keeps the menu open. |
| `placement` | `placement?: MenuPlacement;` | optional, inherited | Default `'bottom-start'`; flips and shifts to stay in the viewport; logical (mirrored in RTL). |
| `container` | `container?: Element \| null;` | optional, inherited | Portal target (default: the trigger's `document.body`). |
| `submenuOpen` | `submenuOpen?: MenuSubmenuOpen;` | optional, inherited | Submenus open after a pointer rest of `hoverDelay` ms (default `'hover'`) or on click only. |
| `hoverDelay` | `hoverDelay?: number;` | optional, inherited | Hover intent of submenus in ms (default 200). |
