View as Markdown

API reference: @salmonui/navigation/tabs

TabListPropsinterface

import type { TabListProps } from '@salmonui/navigation/tabs';
interface TabListProps extends ListDomProps {
    readonly children?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly ref?: Ref<HTMLDivElement>;
}
TabListProps members (4)
NameSignatureDescription
childrenoptionalreadonly children?: ReactNode;

Tab elements.

classNameoptionalreadonly className?: string;

On the .salmon-tab-list wrapper (which also holds the scroll buttons and the overflow menu button).

styleoptionalreadonly style?: CSSProperties;
refoptionalreadonly ref?: Ref<HTMLDivElement>;

The role="tablist" element (which also receives aria-label and the other DOM props).