← ui-lab

Split Button

A primary action paired with a menu of related secondary actions. The common action is one click on the main button; the rest live behind the toggle, which opens a menu (moving focus into it) and returns focus to the toggle on close. The chosen action is announced in a status region.

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/split-button.json

Conformance

This component conforms to the @publictheta/ui-spec split-button specification. Run the suite against any implementation with pnpm conformance.