The DroplistItem component.

Parameters:
NameTypeDescription
propsobject

Props for the DroplistItem component.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the droplist item.

customClassesstring | Array | object

Custom classes for the droplist item.

depthnumber

The depth of the droplist item.

elementstring

The element type to render, one of button or link.

iconAfterstring

The icon after the text.

iconAfterAttributesobject

Custom attributes for the icon after the text.

iconAfterClassesstring | Array | object

Custom classes for the icon after the text.

iconBeforestring

The icon before the text.

iconBeforeAttributesobject

Custom attributes for the icon before the text.

iconBeforeClassesstring | Array | object

Custom classes for the icon before the text.

iconPrefixstring

The icon prefix to use.

indexnumber

The index of the droplist item.

labelstring

The label to display.

labelAttributesobject

Custom attributes for the label component.

labelClassesstring | Array | object

Custom classes for the label component.

propsWithStateobject

Props and state to pass to the droplist item.

stylestring

The style of the droplist item, one of info or error.

refobject | null

Ref to the component.

Since
  • 4.3.0
Returns:

The DroplistItem component.

Type: 
JSX.Element | null