Version: 5.2
List and Items
Disable an Item#
You may want to disable an item, The item will be unselectable.
Item-specific styles#
Each item can have its own label and container styles.
Test ID#
Used to locate the item in end-to-end tests.
Props#
itemKey#
Specifies which item key should be used as a key.
| Type | Default |
|---|---|
| string | value |
closeAfterSelecting#
Closes the drop-down menu after selecting an item.
note
This only works with single item pickers.
| Type | Default |
|---|---|
| bool | false |
itemSeparator#
Specifies if the item separater should be visible.
| Type | Default |
|---|---|
| bool | false |
Callbacks#
renderListItem#
Customizes the renderListItem.
- See: RenderListItem.js
| Type |
|---|
| function |
ListEmptyComponent#
Changes the default ListEmptyComponent.