The list component for the dropdown.

Parameters:
NameTypeDescription
propsobject

The component props.

Properties
NameTypeDescription
handleBlurfunction

The blur event handler.

handleKeyDownCapturefunction

The key down capture event handler.

handleListKeyDownfunction

The list key down event handler.

hasSearchboolean

Whether the dropdown has search.

labelstring

The label of the dropdown.

listAttributesArray

Custom attributes for the list.

listClassesstring | Array | object

Custom classes for the list.

listItemsArray

The list items.

multiboolean

Whether the dropdown is multi-select.

popoverMaxHeightnumber

The popover max height.

selectedIconstring

The selected icon.

selectedIconPrefixstring

The selected icon prefix.

selectItemfunction

The select item event handler.

refobject

The ref object.

Since
  • 4.5.0
Returns:

The list component.

Type: 
JSX.Element

Methods

(inner) getListItems() → {Array}

Gets the list items for the dropdown.

Since
  • 4.5.0
Returns:

An array of list items.

Type: 
Array