---
title: Tabs
description: A set of layered sections of content—known as tab panels—that are displayed one at a time.
base: base
component: true
links:
doc: https://base-ui.com/react/components/tabs
api: https://base-ui.com/react/components/tabs#api-reference
---
## Installation
Command
Manual
```bash
npx shadcn@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 showLineNumbers
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
```
```tsx showLineNumbers
Account
Password
Make changes to your account here.
Change your password here.
```
## Examples
### Line
Use the `variant="line"` prop on `TabsList` for a line style.
### Vertical
Use `orientation="vertical"` for vertical tabs.
### Disabled
### Icons
## RTL
To enable RTL support in shadcn/ui, see the [RTL configuration guide](/docs/rtl).
## API Reference
See the [Base UI Tabs](https://base-ui.com/react/components/tabs#api-reference) documentation.