View as Markdown

API reference: @salmonui/navigation/toolbar

ToolbarPropsinterface

import type { ToolbarProps } from '@salmonui/navigation/toolbar';
interface ToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
    readonly children?: ReactNode;
    readonly orientation?: ToolbarOrientation | undefined;
    readonly overflow?: ToolbarOverflow | undefined;
    readonly scrollStep?: number | undefined;
    readonly disabled?: boolean | undefined;
    readonly moreIcon?: ReactNode;
    readonly localeText?: Partial<ToolbarLocaleText> | undefined;
    readonly ref?: Ref<HTMLDivElement> | undefined;
}
ToolbarProps members (8)
NameSignatureDescription
childrenoptionalreadonly children?: ReactNode;

Toolbar content: buttons, ToolbarItem, ToolbarGroup, ToolbarSpacer, ToolbarSeparator.

orientationoptionalreadonly orientation?: ToolbarOrientation | undefined;

Layout and arrow-key axis. Default 'horizontal'.

overflowoptionalreadonly overflow?: ToolbarOverflow | undefined;

What happens to items that do not fit. Default 'menu'.

scrollStepoptionalreadonly scrollStep?: number | undefined;

Distance of one scroll-button press in px (overflow="scroll"). Default 120.

disabledoptionalreadonly disabled?: boolean | undefined;

Disables every control (a disabled <fieldset>); aria-disabled on the toolbar.

moreIconoptionalreadonly moreIcon?: ReactNode;

Icon of the overflow menu button (default: three dots).

localeTextoptionalreadonly localeText?: Partial<ToolbarLocaleText> | undefined;
refoptionalreadonly ref?: Ref<HTMLDivElement> | undefined;