Expandable Control

Click-to-expand button and chip controls that reveal a label or trailing action through spring layout continuity.

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/expandable-control

API Reference

ExpandableButton

icon
ReactNode
label
ReactNode
expanded?
boolean
defaultExpanded?
boolean
onExpandedChange?
((expanded: boolean) => void)

ExpandableChip

label
ReactNode
actionIcon
ReactNode
actionLabel
string
onAction?
(() => void)
collapseOnAction?
boolean
true
disabled?
boolean
className?
string
labelClassName?
string
actionClassName?
string
expanded?
boolean
defaultExpanded?
boolean
onExpandedChange?
((expanded: boolean) => void)

Updated