Skip to content

Tabs ​

bo-tabs coordinates a list of triggers and content panels. If no value is supplied, the first enabled trigger becomes active when it registers.

Basic Usage ​

Project overview.
<bo-tabs v-model="active">
  <bo-tabs-list aria-label="Project sections"><bo-tabs-trigger value="overview">Overview</bo-tabs-trigger><bo-tabs-trigger value="activity">Activity</bo-tabs-trigger></bo-tabs-list>
  <bo-tabs-content value="overview">Project overview.</bo-tabs-content>
  <bo-tabs-content value="activity">Recent project activity.</bo-tabs-content>
</bo-tabs>

Orientation and Activation ​

orientation changes the tab-list direction and arrow-key navigation. activationMode="automatic" selects while focus moves; manual moves focus without selecting until Enter or Space.

<bo-tabs v-model="active" orientation="vertical" activation-mode="manual">
  <bo-tabs-list aria-label="Settings sections"><bo-tabs-trigger value="profile">Profile</bo-tabs-trigger><bo-tabs-trigger value="security">Security</bo-tabs-trigger></bo-tabs-list>
  <bo-tabs-content value="profile">Profile settings.</bo-tabs-content>
  <bo-tabs-content value="security">Security settings.</bo-tabs-content>
</bo-tabs>

API Reference ​

Component / propTypeDefaultDescription
BoTabscomponent-Root selection context.
modelValuestring | number-Active value used by v-model.
defaultValuestring | number-Initial uncontrolled value.
orientation'horizontal' | 'vertical'horizontalLayout and navigation axis.
activationMode'automatic' | 'manual'automaticFocus activation behavior.
disabledbooleanfalseDisables the tab set.
BoTabsListcomponent-tablist; accepts ariaLabel.
BoTabsTriggercomponent-Trigger with required value and optional disabled, ariaLabel.
BoTabsContentcomponent-Panel with required value; forceMount keeps inactive content mounted.

The root emits update:modelValue. Triggers support Enter/Space, Home, End, and axis-appropriate arrow keys.

Released under the MIT License.