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

    Type Alias ButtonGroupProps<ValueType>

    ButtonGroupProps: {
        ariaLabel?: string;
        disabled?: boolean;
        options: ReadonlyArray<ButtonGroupOptionType<ValueType>>;
        stretchItems?: boolean;
    } & ButtonGroupTypeProps<ValueType>

    Type Parameters

    • ValueType extends string

    Type Declaration

    • OptionalariaLabel?: string

      Provide an accessible name for the group as a whole. Button groups rarely have a visible caption, so setting this is recommended — it tells screen reader users what the buttons collectively control.

      `Text alignment`
      
    • Optionaldisabled?: boolean

      When true, prevents the user from interacting with the button group and all its items.

      false
      
    • options: ReadonlyArray<ButtonGroupOptionType<ValueType>>

      Buttons to render in the group. Each item must have a unique value.

    • OptionalstretchItems?: boolean

      Stretch the group to fill available space and make items within equal-width.

      false