--- title: "Tabs" slug: tabs category: component type: technical-information version: 20.0.0 tokens: 1299 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-tabs--technical-information.txt --- # Tabs ## Tabs This component extends all the native `
` attributes. | 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. | ## Tab This component extends all the native `