Forms
Split Button
A main action joined to a chevron that opens a menu of related actions.
Group: Forms. Exports: SplitButton. Halaska addition with no shadcn/ui equivalent.
Usage
import { SplitButton } from "./halaska-kit";
SplitButton props
childrenReactNode: Content.onClick() => void: Called on click.itemsarray(default []): The entries to render.variantstring(default "primary"): Visual variant.sizestring(default "md"): Size of the control.
Accessibility
- The chevron is labelled "More options" and reports aria-haspopup and aria-expanded.
- The menu has menu and menuitem roles, and focus moves to the first item when it opens.
- Up and Down arrows, Home and End move between items. Escape, Tab, an outside click or a pick closes the menu.
- Focus returns to the chevron when the menu closes.
Used in
Halaska UI · Components · Patterns · Screens · Install