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

Menu

Expandable Tabs

Preview

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/expandable-tabs

Import the shared styles once in your application.

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

API Reference

items
readonly FoldingTab[]
Default—
value?
string | null

Active tab id, or null/undefined for the closed (bar-only) state.

Default—
defaultValue?
string | null
Defaultnull
@update:model-value?
(value: string | null) => void
Default—
class?
string
Default—
classNames?
ExpandableTabsClassNames
Default—
labels?
Partial<typeof expandableTabsMessages>

Override any built-in string.

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

Updated