---
title: "Tabs"
slug: tabs
category: component
type: examples
version: 20.0.0
tokens: 2324
source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-tabs--examples.txt
---
# Tabs
## Default
```tsx
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
```
## Variant
```tsx
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
```
## Size
```tsx
<>
MD
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
SM
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
XS
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
>
```
## Disabled
```tsx
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
```
## Overflow
```tsx
Tab 1
Tab 2
Tab 3
Tab 4
Tab 5
Tab 6
Content 1
Content 2
Content 3
Content 4
Content 5
Content 6
```
## With Arrows
```tsx
Tab 1
Tab 2
Tab 3
Tab 4
Tab 5
Tab 6
Tab 7
Tab 8
Tab 9
Tab 10
Tab 11
Tab 12
Tab 13
Tab 14
Tab 15
Content 1
Content 2
Content 3
Content 4
Content 5
Content 6
Content 7
Content 8
Content 9
Content 10
Content 11
Content 12
Content 13
Content 14
Content 15
```
## With Content
```tsx
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
```
## Product Detail
```tsx
Description
Specifications
Reviews
A high-performance cloud server with 32 vCPUs, 128 GB RAM, and NVMe storage.
- CPU: 32 vCPUs
- RAM: 128 GB DDR4
- Storage: 2 × 960 GB NVMe SSD
- Network: 1 Gbps
Rating: 4.8 / 5 based on 142 reviews
"Excellent performance for our production workloads." — J. Martin
```
## Controlled
```tsx
{
const [value, setValue] = useState('tab1');
const handleValueChange = (event: TabsValueChangeEvent) => {
setValue(event.value);
};
return (
Tab 1
Tab 2
Tab 3
Content 1
Content 2
Content 3
);
}
```
## Controlled With Navigation
```tsx
{
const tabs = [
{ value: 'account', label: 'Account' },
{ value: 'security', label: 'Security' },
{ value: 'notifications', label: 'Notifications' },
{ value: 'billing', label: 'Billing' },
];
const [active, setActive] = useState('account');
const currentIndex = tabs.findIndex((t) => t.value === active);
return (
setActive(e.value) }>
{ tabs.map((tab) => (
{ tab.label }
)) }
{ tabs.map((tab) => (
{ tab.label } settings
)) }
);
}
```
## Mount Strategy
```tsx
Overview
Metrics
Search
FAQ
Rendered on load, as it is the selected tab.
Rendered the first time this tab is shown, then kept.
Always rendered, so it stays in the server-rendered HTML and can be indexed.
```