View as Markdown

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.

TabRenderProps members (5, 5 inherited)
NameSignatureDescription
idinheritedid: string;
tabIndexinheritedtabIndex: number;
roleinheritedrole: "tab";
refinheritedref: (element: HTMLElement | null) => void;
data-valueinheriteddata-value: string;