# TabsProps (@salmonui/navigation/tabs)

> The TabsProps interface of @salmonui/navigation/tabs.

Canonical: https://salmonui.dev/docs/reference/navigation/tabs/TabsProps

```ts
import type { TabsProps } from '@salmonui/navigation/tabs';
```

Entry index: https://salmonui.dev/docs/reference/navigation/tabs (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/navigation/tabs.md).

## Reference

Kind: interface

```ts
interface TabsProps extends RootDomProps {
    readonly children?: ReactNode;
    readonly value?: string | undefined;
    readonly defaultValue?: string;
    readonly onValueChange?: (value: string, event: TabsValueChangeEvent) => void;
    readonly onBeforeValueChange?: (event: TabsBeforeValueChangeEvent) => void;
    readonly placement?: TabsPlacement;
    readonly activation?: TabsActivation;
    readonly panelMount?: TabsPanelMount;
    readonly overflow?: TabsOverflow;
    readonly scrollStep?: number;
    readonly disabled?: boolean;
    readonly reorderable?: boolean;
    readonly onBeforeReorder?: (event: TabsBeforeReorderEvent) => void;
    readonly onReorder?: (event: TabsReorderEvent) => void;
    readonly localeText?: Partial<TabsLocaleText>;
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly ref?: Ref<HTMLDivElement>;
}
```

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `readonly children?: ReactNode;` | optional | `TabList` and `TabPanel` elements (in any order; `placement` arranges them). |
| `value` | `readonly value?: string \| undefined;` | optional | Selected tab value (controlled). |
| `defaultValue` | `readonly defaultValue?: string;` | optional | Initial selected value; without `value` and `defaultValue` the first enabled tab is selected after mount. |
| `onValueChange` | `readonly onValueChange?: (value: string, event: TabsValueChangeEvent) => void;` | optional |  |
| `onBeforeValueChange` | `readonly onBeforeValueChange?: (event: TabsBeforeValueChangeEvent) => void;` | optional | Runs before a selection change; `event.preventDefault()` keeps the current tab. |
| `placement` | `readonly placement?: TabsPlacement;` | optional | Side of the panels the tab list sits on. Default `'top'`; `'start'` / `'end'` make the list vertical. |
| `activation` | `readonly activation?: TabsActivation;` | optional | Default `'automatic'` (selection follows focus). |
| `panelMount` | `readonly panelMount?: TabsPanelMount;` | optional | Default `'lazy'`. |
| `overflow` | `readonly overflow?: TabsOverflow;` | optional | Default `'scroll'`. |
| `scrollStep` | `readonly scrollStep?: number;` | optional | Pixels per scroll button press (`overflow="scroll"`). Default 100. |
| `disabled` | `readonly disabled?: boolean;` | optional | Disables every tab. |
| `reorderable` | `readonly reorderable?: boolean;` | optional | Tabs can be reordered by pointer drag and Alt+Arrow keys; the application moves the tab in `onReorder`. |
| `onBeforeReorder` | `readonly onBeforeReorder?: (event: TabsBeforeReorderEvent) => void;` | optional |  |
| `onReorder` | `readonly onReorder?: (event: TabsReorderEvent) => void;` | optional |  |
| `localeText` | `readonly localeText?: Partial<TabsLocaleText>;` | optional |  |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLDivElement>;` | optional | The root element. |
