The trigger for the dropdown.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
disabledboolean

Whether the dropdown is disabled.

handleBlurfunction

The blur event handler.

handleEscKeyDownfunction

The escape keydown event handler.

handleKeyDownCapturefunction

The keydown capture event handler.

handleTriggerKeyDownfunction

The trigger keydown event handler.

i18nobject

The i18n object.

labelstring

The label for the dropdown.

multiboolean

Whether the dropdown is multi-select.

openfunction

The open function.

resetAndClosefunction

The reset and close function.

triggerAttributesobject

Custom attributes for the trigger.

triggerClassesstring | Array | object

Custom classes for the trigger.

refobject

Ref to the component.

Since
  • 4.5.0
Returns:

The trigger component.

Type: 
JSX.Element

Methods

(inner) getMultiTriggerLabel() → {string|JSX.Element}

Get the label for the multi dropdown trigger.

Since
  • 4.5.0
Returns:

The label for the multi dropdown trigger.

Type: 
string | JSX.Element

(inner) getSingleTriggerLabel() → {JSX.Element}

Get the label for the single dropdown trigger.

Since
  • 4.5.0
Returns:

The label for the single dropdown trigger.

Type: 
JSX.Element