API reference: @salmonui/navigation/tabs
TabRenderPropstype
import type { TabRenderProps } from '@salmonui/navigation/tabs';type TabRenderProps = HTMLAttributes<HTMLElement> & {
readonly ref: (element: HTMLElement | null) => void;
readonly role: 'tab';
readonly id: string;
readonly tabIndex: number;
readonly 'data-value': string;
} & {
readonly [attribute: `data-${string}`]: string | undefined;
};
Props passed to a custom tab element (render): spread them all.
| Name | Signature | Description |
|---|---|---|
idinherited | id: string; | |
tabIndexinherited | tabIndex: number; | |
roleinherited | role: "tab"; | |
refinherited | ref: (element: HTMLElement | null) => void; | |
data-valueinherited | data-value: string; |