View as Markdown

API reference: @salmonui/navigation/toolbar

ToolbarGroupPropsinterface

import type { ToolbarGroupProps } from '@salmonui/navigation/toolbar';
interface ToolbarGroupProps extends HTMLAttributes<HTMLDivElement> {
    readonly children?: ReactNode;
    readonly align?: 'start' | 'center' | 'end' | undefined;
    readonly label?: ReactNode;
    readonly action?: ReactNode;
}
ToolbarGroupProps members (4)
NameSignatureDescription
childrenoptionalreadonly children?: ReactNode;
alignoptionalreadonly align?: 'start' | 'center' | 'end' | undefined;

Pushes the group to the start, center or end of the bar. Default 'start'.

labeloptionalreadonly label?: ReactNode;

Visible label under the items; names the group (role="group").

actionoptionalreadonly action?: ReactNode;

Launcher slot next to the label (for example a Button iconOnly); never overflows.