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

    Type Alias RadioGroupProps<ValueType>

    type RadioGroupProps<ValueType> = {
        ariaLabel?: string;
        disabled?: boolean;
        options: ReadonlyArray<RadioGroupOptionType<ValueType>>;
        orientation?: "horizontal" | "vertical";
        value: ValueType;
        onValueChange(value: ValueType): void;
    }

    Type Parameters

    • ValueType
    Index

    Properties

    ariaLabel?: string

    Provide an accessible name for the group as a whole. Radio groups rarely have a visible caption, so setting this is recommended — screen readers announce it when focus enters the group.

    `Operating system`
    
    disabled?: boolean
    false
    
    options: ReadonlyArray<RadioGroupOptionType<ValueType>>

    Available options that can be selected.

    orientation?: "horizontal" | "vertical"
    'vertical'
    
    value: ValueType

    The controlled value of the radio group. Should be used in conjunction with onValueChange.

    Methods