FoundationsSplit Button
Split Button
Split button is used to group related actions, allowing users to perform a main action or choose from a menu of secondary actions.
SplitButtonProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
align | start|end | — | — | — |
button | Action | Yes | — | — |
buttonData | DataAttributeMap | — | — | — |
buttonRef | Ref<HTMLButtonElement> | — | — | — |
disabled | boolean | — | — | — |
id | string | — | — | Id of the primary button, so the split button can be targeted or labelled. |
menuItems | ReactNode | Yes | — | — |
menuTriggerData | DataAttributeMap | — | — | — |
menuTriggerLabel | string | — | — | — |
Also accepts Pick<ButtonProps, 'variant' | 'colorScheme' | 'size' | 'type' | 'loading'> | ||||