Tabs Buttons

Usage and anatomy

Tabs Button uses a segmented-control treatment for switching between related panels or views. Match each TabsButton.Trigger value with a TabsButton.Content value.

import * as TabsButton from "@acme/ui/tabs-button"
<TabsButton.Root defaultValue="grid">
<TabsButton.List aria-label="View">
<TabsButton.Trigger value="grid">
<TabsButton.TriggerLabel>Grid</TabsButton.TriggerLabel>
</TabsButton.Trigger>
<TabsButton.Trigger value="list">
<TabsButton.TriggerLabel>List</TabsButton.TriggerLabel>
</TabsButton.Trigger>
</TabsButton.List>
<TabsButton.Content value="grid">Grid view</TabsButton.Content>
<TabsButton.Content value="list">List view</TabsButton.Content>
</TabsButton.Root>

Compose trigger text and icons with TabsButton.TriggerLabel and TabsButton.TriggerIcon. Size, variant, and orientation are inherited from the root.

Tabs Button - Plain

Tabs Button - Sizes

Tabs Button - With icons

Tabs Button - Border

Tabs Button - Vertical

Tabs Button - With content

API reference

TabsButton.Root
PropTypeDefault
sizesm | md | lg | xl | xxlmd
variantplain | borderplain
orientationhorizontal | verticalhorizontal
defaultValuestring
valuestring

TabsButton.Root also accepts Radix Tabs root props, including onValueChange. TabsButton.List, TabsButton.Trigger, and TabsButton.Content accept their corresponding Radix props.

PlumeUI - Build beautiful React applications faster