Tab child defines a trigger label and the content shown when that tab is active.
Basic Usage
Variants
Thevariant prop controls the visual style of the tab triggers. The default uses a pill-style background, while "line" uses an underline indicator.
State Tracking
Give Tabs aname to sync the active tab with client state. Other components can then read or change which tab is active — useful for building wizard flows or linking navigation between different parts of the UI.
Tabs with State
API Reference
Tabs Parameters
Visual style:
"default" (pill background) or "line" (underline indicator).Value of the initially active tab. If omitted, the first tab is active.
State key for tracking the active tab. Enables reading/writing the active tab from other components.
Action(s) triggered when the active tab changes.
Additional Tailwind CSS classes.
Protocol Reference
Tabs
Tab