ButtonItemProps
The props of the ButtonItem component. The ButtonItem component renders each list item in the dropdown buttons list.
Name | Type | Default | Description |
---|---|---|---|
className? |
|
One or more CSS classes that will be added to the item element. | |
dataItem |
|
The data item represented by this button item. | |
focused? |
|
Determines whether the item is focused. | |
id? |
|
The id attribute of the item. | |
index? |
|
The index of the item in the items list. | |
item? |
|
A React component for rendering the item. | |
onClick |
|
A function that is fired when the item is clicked. | |
onDown? |
|
A function that is fired when the mouse or pointer is pressed down on the item. | |
render? |
|
A function or React component for rendering the item. The default rendering includes an icon, an image, and text. | |
textField? |
|
The field of the data item that provides the text content of the item. | |
unstyled? |
|
Internal property for the unstyled rendering variant of the component. |