# TabProps (@salmonui/navigation/tabs)

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

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

```ts
import type { TabProps } 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 TabProps extends TabDomProps {
    readonly value: string;
    readonly children?: ReactNode;
    readonly icon?: ReactNode;
    readonly iconPlacement?: TabIconPlacement;
    readonly disabled?: boolean | undefined;
    readonly hidden?: boolean | undefined;
    readonly onClose?: ((event: TabCloseEvent) => void) | undefined;
    readonly render?: ((props: TabRenderProps) => ReactElement) | undefined;
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly ref?: Ref<HTMLElement>;
}
```

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value: string;` |  | Stable key of the tab; matches its `TabPanel value`. |
| `children` | `readonly children?: ReactNode;` | optional | The label. |
| `icon` | `readonly icon?: ReactNode;` | optional | Decorative icon (`aria-hidden`). |
| `iconPlacement` | `readonly iconPlacement?: TabIconPlacement;` | optional | Default `'start'`. |
| `disabled` | `readonly disabled?: boolean \| undefined;` | optional | `aria-disabled="true"`: skipped by arrow keys, not selectable. |
| `hidden` | `readonly hidden?: boolean \| undefined;` | optional | Not shown (the element stays in the DOM with `hidden`). |
| `onClose` | `readonly onClose?: ((event: TabCloseEvent) => void) \| undefined;` | optional | Shows a close button and handles Delete on the focused tab; the application removes the tab. |
| `render` | `readonly render?: ((props: TabRenderProps) => ReactElement) \| undefined;` | optional | Custom element (a router link); receives every computed prop. |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |
| `ref` | `readonly ref?: Ref<HTMLElement>;` | optional | The `role="tab"` element. |
