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.

iconstring

The icon to display.

iconAttributesobject

Custom attributes for the icon component.

iconClassesstring | Array | object

Custom classes for the icon component.

iconPrefixstring

The icon prefix to use.

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