Search
Search components and blocks
Split Button
ProA primary action joined to a menu of alternatives. Pick an option and the main button relabels with a quick crossfade; the menu unfolds out of the chevron with a morph while the options blur into focus, the selection highlight slides between rows and the check springs in. Needs the Morph Popover.
Press the main button
Props
PropTypeDefault
optionsreadonly SplitButtonOption[]requiredvaluestring—defaultValuestringfirst optiononValueChange(value: string) => void—onAction(value: string) => voidrequiredvariant"default" | "outline" | "secondary""default"align"start" | "center" | "end""end"disabledbooleanfalsesize"sm" | "md" | "lg""md"loadingbooleanfalseopenboolean—defaultOpenbooleanfalseonOpenChange(open: boolean) => void—classNamestring—When to use the split button
Use it for a primary action with alternatives. Pick an option and the main button relabels with a quick crossfade.