Tabs
Tabbed content navigation
UI PrimitiveNavigation
Overview
Built on Radix UI's Tabs primitive. Supports horizontal and vertical orientations, and two visual tab list styles: pill/background (default) and underline (line).
Usage
import { Tabs } from "@leanicon/web-builder-library";
<Tabs defaultValue="overview">
<Tabs.List>
<Tabs.Trigger value="overview">Overview</Tabs.Trigger>
<Tabs.Trigger value="details">Details</Tabs.Trigger>
</Tabs.List>
<Tabs.Content value="overview">Overview content</Tabs.Content>
<Tabs.Content value="details">Details content</Tabs.Content>
</Tabs>;Variants
Default (pill style)
Overview content here.
Line style (underline indicator)
General settings.
Vertical orientation
Edit your profile information.
Vertical with line style
Content for section A.
Notes
Tabs.Listacceptsvariant="line"for underline style or"default"for pill/background style.orientation="vertical"withclassName="flex-row"creates a side-tab layout.- Dark mode is handled via semantic tokens.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
asChild | boolean | — | No | |
variant | "line" | "default" | null | default | No |