Split button
The usual action and its alternatives in one frame. The action runs with one press; the caret opens a menu that docks to the whole frame.
Loading the live example…
Installation
Run it where your components.json is. The first time, map the @keyline-ui registry: one command, in Installation.
Usage
The menu’s rows are Menu’s, which the split button installs with it.
Examples
Remember the last choice
The action can repeat whatever was chosen from the menu last, so the second export is one press.
Loading the live example…
Props
Parts: SplitButton, SplitButtonAction (a button; its props pass through), SplitButtonMenu. The menu is Base UI Menu.