Split Button

A primary action fused with a chevron trigger that reveals related actions in a spring-timed dropdown, sharing a single pill silhouette.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/split-button

API Reference

PropTypeDefaultDescription
labelstringLabel for the primary (left) action
onClick() => voidCalled when the primary action is pressed
optionsSplitButtonOption[]Dropdown options revealed by the chevron trigger
size'sm' | 'md' | 'lg''md'Padding and text size
variant'primary' | 'secondary''primary'Visual style of both halves of the control
disabledbooleanfalseDisables the entire control