Split Button
A button component with a primary action and additional options in a dropdown menu
Installation
Usage
Examples
Simple
Default Split Button
Secondary Variant
Outline Variant
Small Size Variant
Split Button Action
split button Action variant with loading states, glass morphism, and animated hover effects.
Modern Split Button Variants
Size Variants
Reference
Default Split Button Props
Prop | Type | Default |
---|---|---|
options | SplitButtonOption[] | - |
mainAction | () => void | - |
variant | default | destructive | outline | secondary | ghost | link | default |
size | default | sm | lg | icon | default |
dropdownAlign | start | center | end | end |
className | string | - |
Action Split Button Props
Prop | Type | Default |
---|---|---|
options | SplitButtonOption[] | - |
mainAction | () => void | - |
variant | default | destructive | outline | secondary | ghost | link | default |
size | default | sm | lg | icon | default |
dropdownAlign | start | center | end | end |
icon | React.ReactNode | - |
isLoading | boolean | false |
glassMorphism | boolean | false |
className | string | - |
Split Button Option Type
Prop | Type | Default |
---|---|---|
label | string | - |
onClick | () => void | - |
icon | React.ReactNode | - |
variant | default | destructive | - |
Edit on GitHub
Last updated on