Skip to content
↑↓ to navigate↵ to openesc to close

Menu

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 your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/morphing-tabs

Import the shared styles once in your application.

TSUsage
import MorphingTabs from '@/components/beui/blocks/MorphingTabs.vue'
import '@/components/beui/styles.css'

API Reference

items
readonly TabItem[]
Default—
value?
string | null
Default—
defaultValue?
string | null
Defaultnull
@update:model-value?
(value: string | null) => void
Default—
@order-change?
(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
Default—
className?
string
Default—
classNames?
TabClassNames
Default—
labels?
Partial<typeof morphingTabsMessages>

Override any built-in string.

Default—
v-model?
string | null
Default—
@value-change?
(value: string | null) => void
Default—
#content?
{ item: TabItem; index: number }
Default—
#icon?
{ item: TabItem; index: number }
Default—

Updated