Split button
import { SplitButton } from "@arcadia/ui";SplitButton
onClick- (e: MouseEvent<HTMLButtonElement>) => void
menuLabelrequired- string
- The chevron's accessible name, and its label standing alone.
menurequired- ReactNode
- The
MenuContentthe chevron opens. variant- "primary" | "secondary" | "ghost" | "text"
- Default:
"secondary" size- "xs" | "sm"
- Default:
"sm" 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:
Layoutand 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.