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

    Type Alias DropdownProps<ValueType>

    type DropdownProps<ValueType> = {
        ariaLabel?: string;
        disabled?: boolean;
        options: ReadonlyArray<DropdownOptionType<ValueType>>;
        placeholder?: string;
        value?: ValueType;
        onValueChange(value: ValueType): void;
    }

    Type Parameters

    • ValueType
    Index

    Properties

    ariaLabel?: 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`
    
    disabled?: boolean
    false
    
    options: ReadonlyArray<DropdownOptionType<ValueType>>

    Available options that can be selected.

    placeholder?: string

    The placeholder text shown while no option is selected.

    value?: ValueType

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

    Methods