SplitButton
moleculesA primary action fused with a caret that opens a Menu of alternatives: one radius, one divider, two tab stops.
Composer send
variant="primary" with control height; items fill the caret Menu, onclick is the primary action, ArrowDown opens the menu.
51 characters
Variants, sizes and caret width
variant default/primary/danger; size sm/md/lg; caret="half" narrows the secondary segment.
States
disabled stops both segments; menuDisabled keeps the primary; loading busies it; primaryProps carries title and aria-describedby; placement flips the menu.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'primary' | 'ghost' | 'danger' | 'default' | `ghost` keeps an idle action quiet (no fill, no edge) until it becomes the primary. |
size | ControlSize | — | |
control | boolean | false | Uniform toolbar/composer control height; follows a sized `Cluster`. |
caret | 'square' | 'half' | 'square' | `half` narrows the caret to half the control height so it reads as secondary to the primary action. |
disabled | boolean | false | Disables both segments. |
menuDisabled | boolean | false | Disables the caret only; the primary action keeps working. |
label required | string | — | Accessible name of the caret ("More send options"). |
items required | MenuItem[] | — | |
placement | MenuProps['placement'] | 'bottom-end' | |
tag | MenuProps['tag'] | — | Custom trailing content for items that carry a `tag`. |
panelClass | string | — | |
panelStyle | MenuProps['panelStyle'] | — | |
primaryProps | Omit<HTMLButtonAttributes, 'class'> & { class?: string } | — | Attributes for the primary segment itself — `title`, `aria-describedby`, `data-*`. Rest props stay on the root box, which is where a layout class or `data-journey` for the pair belongs. |
gap | number | — | |
open bindable | boolean | false | Bindable open state of the menu. |
onopen | () => void | — | |
onclose | () => void | — | |
type | 'button' | 'submit' | 'button' | `type` of the primary action, for a submit inside a form. |
loading | boolean | false | Busy primary action: spinner, blocks clicks, `aria-busy`. |
onclick | (e: MouseEvent) => void | — | Handler of the primary action. |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
class | string | '' | |
style | string | '' | |
children required | Snippet | — | Content of the primary action. |