Picker option for use by PickerComponent.

interface PickerOption {
    icon?: string;
    label: string;
    value: unknown;
}

Properties

Properties

icon?: string

The icon of the option. This is displayed in the picker. Using Bootstrap icons package.

'sun-fill' - Sun icon
'moon-stars-fill' - Moon and stars icon
label: string

The label of the option. This is displayed in the picker.

value: unknown

The value of the option. This value is used to set the current value of the picker. It can be any type.