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

    Type Alias DropdownOptionType<ValueType>

    A single selectable option of a Dropdown.

    type DropdownOptionType<ValueType> = {
        disabled?: boolean;
        icon?: ReactNode;
        label: string;
        value: ValueType;
    }

    Type Parameters

    • ValueType
    Index

    Properties

    disabled?: boolean
    false
    
    icon?: ReactNode

    Icon displayed next to the label, both in the option list and in the closed dropdown while this option is selected.

    label: string

    Label displayed for this option.

    value: ValueType

    The value reported through onValueChange when this option is selected.