Morphing Tabs

Preview

quiet focus

Room 2

A small space for the work that needs a little more air around it.

drag any room to reorder

Install

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

$ bunx --bun shadcn add @beui/morphing-tabs

API Reference

items
MorphingTabsItem[]
Default—
value?
string | null
Default—
defaultValue?
string | null
Default—
onValueChange?
((id: string | null) => void)
Default—
onOrderChange?
((ids: string[]) => void)

Called once after a pointer drag or keyboard reorder completes.

Default—
onClose?
((id: string) => void)

Enables the close affordance on every tab when provided.

Default—
ariaLabel?
string
DefaultTabs
className?
string
Default—
classNames?
MorphingTabsClassNames
Default—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated