---
title: Tabs
description: A component for toggling between related panels on the same page.
links:
doc: https://base-ui.com/react/components/tabs#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add tabs
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import { Tabs, TabsList, TabsPanel, TabsTab } from "@/components/ui/tabs"
```
```tsx
Tab 1
Tab 2
Tab 3
Tab 1 content
Tab 2 content
Tab 3 content
```
## API Reference
### Tabs
Root component. Styled wrapper for `Tabs.Root` from Base UI.
### TabsList
Container for tab triggers. Styled wrapper for `Tabs.List` from Base UI with a built-in `Tabs.Indicator`.
### TabsTab
Individual tab trigger. Styled wrapper for `Tabs.Tab` from Base UI.
### TabsPanel
Content panel for each tab. Styled wrapper for `Tabs.Panel` from Base UI.
## Examples
### Vertical Orientation