Tab

A navigation component that allows users to switch between different views or functional aspects of an application.

When To Use

  • Tabs make it easy to switch between different views.
  • Use Normal (Line) Tabs for functional aspects of a page.
  • Use Enclosed Tabs for managing views within a specific container or card.
  • Use Button/Pill Tabs for secondary or segmented controls.
This is content for Tab One.

API Reference

Tab

Property
Description
Type
Default

variant

The visual style variant of the Tab. 'line' | 'icon' | 'selector' | 'button' | 'pill' | 'enclosed' 'line'

label

The text label displayed on the Tab. string '-'

icon

The Lucide icon name to display instead of a label (for icon variant). IconName '-'

iconLeft

The Lucide icon name to display to the left of the label. IconName '-'

iconRight

The Lucide icon name to display to the right of the label. IconName '-'

active

Whether the Tab is currently selected. boolean false

closable

Whether to render a close button on the Tab. boolean false

controls

The ID of the panel element this Tab controls (for ARIA). string '-'

disabled

Disables the Tab and prevents interaction. boolean false

Tabs

Property
Description
Type
Default

orientation

The layout orientation of the Tabs. 'horizontal' | 'vertical' | 'none' 'none'