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

    Function Dropdown

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

      Type Parameters

      • ValueType

      Parameters

      • props: {
            ariaLabel?: string;
            disabled?: boolean;
            options: readonly DropdownOptionType<ValueType>[];
            placeholder?: string;
            value?: ValueType;
            onValueChange(value: ValueType): void;
        }
        • OptionalariaLabel?: string

          Provide an accessible name for screen readers. Use this when the dropdown has no visible label next to it — the selected option's text does not name the control itself.

          `Operating system`
          
        • Optionaldisabled?: boolean
          false
          
        • options: readonly DropdownOptionType<ValueType>[]

          Available options that can be selected.

        • Optionalplaceholder?: string

          The placeholder text shown while no option is selected.

        • Optionalvalue?: ValueType

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

        • onValueChange: function

      Returns Element

      1.0.0