Skip to content

Tabs

A set of layered sections of content—known as tab panels—that are displayed one at a time.

Basic Usage

Make changes to your account here.
Example

Variants

Use the variant prop to control the visual style of the tabs.

  • Line: Default style with a bottom border and an active indicator.
  • Card: Card style with borders.
  • Underline: Simple underline style.

Line Variant

Content 1

Card Variant

Content 1

Underline Variant

Content 1
Example

Vertical Tabs

Use the position prop to control the position of the tabs list.

Account settings here.
Example

Scrollable Tabs

Set the scrollable prop on BrTabsList to enable scrolling when tabs exceed the container width.

Content 1
Example

Closable Tabs

Set the closable prop on BrTabs or BrTabsTrigger to make tabs closable.

Content 1
Example

Theming

Global Customization (BrConfigProvider)

You can override default CSS variables via the theme prop of BrConfigProvider.

Emerald Theme with ConfigProvider

Account (Emerald Theme)
Example

API

BrTabs Props

NameTypeDefaultDescription
variantstring'line'Visual style variants: line, card, underline
positionstring'top'Position of the tabs list: top, right, bottom, left
responsivebooleanfalseWhether the tabs are responsive
closablebooleanfalseWhether the tabs are closable
draggablebooleanfalseWhether the tabs are draggable
lazyLoadbooleantrueWhether the tabs content should be lazy loaded
limitnumber0The maximum number of visible tabs before collapsing

Plus all props from Radix Vue TabsRoot.

BrTabsList Props

NameTypeDefaultDescription
scrollablebooleanfalseWhether the tabs list should be scrollable

Plus all props from Radix Vue TabsList.

BrTabsTrigger Props

NameTypeDefaultDescription
closablebooleanundefinedWhether the tab is closable. Overrides parent closable
draggablebooleanundefinedWhether the tab is draggable. Overrides parent draggable

Plus all props from Radix Vue TabsTrigger.

BrTabsContent Props

All props from Radix Vue TabsContent.

Emits

NameDescriptionParameters
update:modelValueEmitted when the selected tab changes`(value: string
closeEmitted when a tab close button is clicked`(value: string
drag-endEmitted when drag ends`(newOrder: (string