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

    Function RadioGroup

    • Component that displays a group of radio buttons to select one of the given options, using the currently active HELIO theme.

      Type Parameters

      • ValueType

      Parameters

      • props: {
            ariaLabel?: string;
            disabled?: boolean;
            options: readonly RadioGroupOptionType<ValueType>[];
            orientation?: "horizontal" | "vertical";
            value: ValueType;
            onValueChange(value: ValueType): void;
        }
        • OptionalariaLabel?: 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`
          
        • Optionaldisabled?: boolean
          false
          
        • options: readonly RadioGroupOptionType<ValueType>[]

          Available options that can be selected.

        • Optionalorientation?: "horizontal" | "vertical"
          'vertical'
          
        • value: ValueType

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

        • onValueChange: function

      Returns Element

      1.1.0