Tabs
A component that displays tabbed content.
In this guide, you'll learn how to use the Tabs component.
Usage#
1<Tabs>2 <Tabs.List>3 <Tabs.Trigger value="1">Tab 1</Tabs.Trigger>4 <Tabs.Trigger value="2">Tab 2</Tabs.Trigger>5 <Tabs.Trigger value="3">Tab 3</Tabs.Trigger>6 </Tabs.List>7 <Tabs.Content value="1">Panel 1</Tabs.Content>8 <Tabs.Content value="2">Panel 2</Tabs.Content>9 <Tabs.Content value="3">Panel 3</Tabs.Content>10</Tabs>
API Reference#
Examples#
Controlled Tabs#
Tabs with a Disabled Tab#
Tabs with Icons#
Vertical Tabs#
The orientation prop doesn't change the layout of the tabs, but it allows you to navigate between the tabs using the up and down arrow keys. You'll need to manually style the tabs vertically.