View as Markdown

API reference: @salmonui/buttons/button

ButtonGroupPropsinterface

import type { ButtonGroupProps } from '@salmonui/buttons/button';
interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
    children?: ReactNode;
    orientation?: 'horizontal' | 'vertical' | undefined;
    attached?: boolean | undefined;
    variant?: ButtonVariant | undefined;
    tone?: ButtonTone | undefined;
    size?: ButtonSize | undefined;
    disabled?: boolean | undefined;
    ref?: Ref<HTMLDivElement> | undefined;
}
ButtonGroupProps members (8)
NameSignatureDescription
childrenoptionalchildren?: ReactNode;
orientationoptionalorientation?: 'horizontal' | 'vertical' | undefined;

Layout direction. Default 'horizontal'.

attachedoptionalattached?: boolean | undefined;

Joined borders and shared corners. Default true; false spaces the buttons.

variantoptionalvariant?: ButtonVariant | undefined;

Default variant of the buttons inside; a button's own prop wins.

toneoptionaltone?: ButtonTone | undefined;

Default tone of the buttons inside; a button's own prop wins.

sizeoptionalsize?: ButtonSize | undefined;

Default size of the buttons inside; a button's own prop wins.

disabledoptionaldisabled?: boolean | undefined;

Disables every button inside; a button's own disabled wins.

refoptionalref?: Ref<HTMLDivElement> | undefined;