Skip to content
satin

Split button

The usual action, with an arrow that opens its variations.

Installation

Terminal
npm i @uisatin/ui
Import
import { SplitButton } from '@uisatin/ui/split-button'

About 46.9 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.

First time with Satin? Set it up once, styles and fonts included, with the installation guide.

API Reference

The SplitButton component is an attached ButtonGroup of the main Button and an arrow that opens a DropdownMenu of related actions. It takes every Button prop.

PropTypeDefault
menu
ReactNode
—
variant
"primary""secondary""tertiary""inverse""destructive"
"primary"
size
"xs""md""lg""xl"
"md"
shape
"default""rounded"
"default"
disabled
boolean
false
menuLabel
string
"More options"
menuProps
DropdownMenuProps
—
groupClassName
string
—

Accessibility

Two buttons in a role="group": the main action, then an arrow named "More options" (menuLabel) that opens a DropdownMenu. disabled disables both.

KeyAction
EnterorSpaceor↓On the arrow: opens the menu.
↑or↓Moves between the menu items.
A–ZJumps to the item whose label starts with the typed letters.
EscCloses the menu and returns focus to the arrow.