--- title: "Tabs" slug: tabs category: component type: overview version: 20.0.0 tokens: 397 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-tabs.txt --- # Tabs _**Tabs** are a way of navigating between multiple panels, reducing clutter and fitting more into a smaller space_ ## Props | Property | Type | Required | Default | Description | |---|---|---|---|---| | `defaultValue` | `string` | No | undefined | The initial value of the selected tab. Use when you don't need to control the value of the tabs. | | `mountStrategy` | `TABS_MOUNT_STRATEGY` | No | 'keep' | When the content of the inactive panels is rendered: always ('keep'), from the first time it is shown ('lazy') or only while it is shown ('unmount'). Each TabContent can override it. SEO: only 'keep' puts the content of the inactive panels in the server-rendered HTML, so it can be indexed. | | `onValueChange` | `(event: TabsValueChangeEvent) => void` | No | undefined | Callback fired when the state of selected tab changes. | | `size` | `'md' | 'sm' | 'xs'` | No | undefined | The size preset to use. | | `value` | `string` | No | undefined | The controlled value of the selected tab. | | `variant` | `'default' | 'switch'` | No | undefined | The variant preset to use. | | `withArrows` | `boolean` | No | undefined | Whether the component displays navigation arrows around the tabs. | ## Examples - Default - Variant - Size - Disabled - Overflow - With Arrows - With Content - Product Detail - Controlled - Controlled With Navigation - Mount Strategy ## Documentation pages - [Documentation](./react-components-tabs--documentation.txt) - [Technical Information](./react-components-tabs--technical-information.txt) - [Examples](./react-components-tabs--examples.txt)