split and menu buttons
A default action joined to a caret button that opens a menu of related actions, each run as soon as it is chosen. Use it when one action is the usual choice and a few alternatives must stay one step away.
How it differs. Two focus stops in one group: the main half runs the default action, the caret is a named menu button whose items are alternative actions that run on choice, in a menu as wide as the group.
shadcn add @hazine/split-button-menu
Depends on button, button-group, dropdown-menu, @hazine/use-controllable-state, lucide-react