Skip to content
Preview
Release notes draft

SplitButton

onClick
(e: MouseEvent<HTMLButtonElement>) => void
menuLabelrequired
string
The chevron's accessible name, and its label standing alone.
menurequired
ReactNode
The MenuContent the chevron opens.
variant
"primary" | "secondary" | "ghost" | "text"
Default: "secondary"
size
"xs" | "sm"
Default: "sm"
hint
ShortcutSpec | ReactElement
A key hint on the main part.
collapse
"auto" | "menu"
Default: "auto"
auto: the chevron stands alone when the split doesn't fit. menu: always.
busy
boolean
Default: false
The main part keeps its width, a spinner takes the chevron's place, both parts are inert.
disabled
boolean
Default: false
hold
boolean
Default: true
The label and its action hold while the pointer is on the control or the menu is open.
open
boolean
defaultOpen
boolean
Default: false
onOpenChange
(open: boolean, details: OpenChangeDetails) => void
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).
childrenrequired
ReactNode
The main part's label: whole or gone, never faded.

Rest props go to <span> props.

State machine

PreviewThe main move with its choices beside it.