View as Markdown

API reference: @salmonui/buttons/button

ToggleButtonGroupMultiplePropsinterface

import type { ToggleButtonGroupMultipleProps } from '@salmonui/buttons/button';
interface ToggleButtonGroupMultipleProps extends ToggleButtonGroupBaseProps {
    selectionMode: 'multiple';
    value?: readonly string[] | undefined;
    defaultValue?: readonly string[] | undefined;
    onValueChange?: ((value: readonly string[], event: ToggleChangeEvent) => void) | undefined;
}
ToggleButtonGroupMultipleProps members (14, 10 inherited)
NameSignatureDescription
selectionModeselectionMode: 'multiple';

A group of toggle buttons: role="group", items aria-pressed; arrow keys move focus.

valueoptionalvalue?: readonly string[] | undefined;
defaultValueoptionaldefaultValue?: readonly string[] | undefined;
onValueChangeoptionalonValueChange?: ((value: readonly string[], event: ToggleChangeEvent) => void) | undefined;
childrenoptionalinheritedchildren?: ReactNode;

ToggleButton items, each with a value.

orientationoptionalinheritedorientation?: "horizontal" | "vertical";

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

attachedoptionalinheritedattached?: boolean;

Joined borders. Default true, false for variant="chip".

variantoptionalinheritedvariant?: ButtonVariant;

Default variant of the items; 'chip' gives choice and filter chips.

toneoptionalinheritedtone?: ButtonTone;

Default tone of the items.

sizeoptionalinheritedsize?: ButtonSize;

Default size of the items.

disabledoptionalinheriteddisabled?: boolean;

Disables every item; nothing is submitted while disabled.

disallowEmptyoptionalinheriteddisallowEmpty?: boolean;

Keeps one value selected (single) or at least one (multiple). Default false.

nameoptionalinheritedname?: string;

Form field name: one hidden input per selected value.

refoptionalinheritedref?: Ref<HTMLDivElement>;