Components

Tabs (Radix UI)

A set of layered sections of content—known as tab panels—that are displayed one at a time.

Loading

Installation

pnpm dlx shadcn@latest add @toui/tabs

Examples

Icon

Loading

Badge

Loading

Button

Loading

Pill

Loading

Line

Loading

Vertical

Loading

Size - Large

Loading

Size - Medium

Loading

Size - Small

Loading

Size - Xsmall

Loading

Disabled

Loading

API Reference

This component is built using Radix UI Tabs primitives. For detailed information, please visit the full API reference.

Tabs

This component is based on the Tabs.Root primitive. For full details, visit the official documentation.

TabsList

This component is based on the Tabs.List primitive and includes the following custom props:

PropTypeDefault
variant enum "default"
size enum "md"
className stringundefined

TabsTrigger

This component is based on the Tabs.Trigger primitive and inherits the following props from context:

PropTypeDefault
variant enum "default"
size enum "md"
className stringundefined

TabsContent

This component is based on the Tabs.Content primitive and includes the following custom props:

PropTypeDefault
variant enum "default"
className stringundefined

Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.