SplitButton.
A primary action paired with accessible secondary dropdown actions.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
label | string | Yes | — | — | Primary action label. |
onClick | () => void | No | — | — | Primary action callback. |
actions | Array<{label: string; onSelect: () => void; danger?: boolean; disabled?: boolean}> | Yes | — | — | Secondary menu actions. |
disabled | boolean | No | false | true · false | Disables both main action and menu. |
className | string | No | — | — | Additional CSS class on the outer component element. |