Ship-It Designv0.0.3
GitHub

SplitButton

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

Props#

Props for SplitButton
PropTypeDefaultDescription
variantenumprimaryVisual variant applied to BOTH segments. Defaults to `primary`.
size"sm" | "md" | "lg" | null | undefinedmdSize applied to both segments. Defaults to `md`.
onClick(() => void) | undefinedClick handler for the main action button.
onMenu(() => void) | undefinedClick handler for the trailing menu (caret) button.
disabledboolean | undefinedDisable both segments.
menuAriaLabelstring | undefinedMore actionsAccessible label for the trailing menu button. Defaults to `"More actions"`. Override when the menu's purpose is more specific (e.g. `"Deploy options"`) so screen-reader users hear the right intent.