@hmiproject/helio-sdk
    Preparing search index...

    Type Alias ButtonGroupOptionType<ValueType>

    A single button of a ButtonGroup.

    type ButtonGroupOptionType<ValueType extends string> = {
        ariaLabel?: string;
        disabled?: boolean;
        label?: ReactNode;
        value: ValueType;
    }

    Type Parameters

    • ValueType extends string
    Index

    Properties

    ariaLabel?: string

    Provide an accessible name for screen readers. Use this when label contains no readable text — e.g. an icon-only alignment button.

    `Align left`
    
    disabled?: boolean
    false
    
    label?: ReactNode

    Label displayed inside the button.

    value: ValueType

    The value reported through onValueChange when this button is toggled. Must be unique within the group.