Skip to content

IDropdownListItem

Type interface

Sources

IDropdownListItem is an interface: it describes a shape of data and is not imported on its own.

Properties

checked

Type undefined | false | true

Checks the radio button or checkbox at the start.

className

Type undefined | string

Extra CSS class of the item.

disabled

Type undefined | false | true

Shows the item as disabled, so it can't be picked.

form

Type "radio" | "checkbox"

Adds a radio button or a checkbox to the item. Toggling it dispatches changed.

icon

Type SVGElement

Icon shown before the label.

id

Type string

ID of the item. "separator" draws a separator line instead.

label

Type string

Text of the item.

options

Type IDropdownListItem[]

subLabel

Type undefined | string

Second line of text, also used as the item's tooltip.

value

Type undefined | string

Value of the radio button or checkbox.