DropDown
Last updated
Last updated
A DropDown component.
header
TYPE | DEFAULT VALUE |
---|---|
| None |
A header that will appear at the beginning of the items menu.
items
TYPE | DEFAULT VALUE |
---|---|
| None (required) |
Use this property to define the items of the DropDown menu.
TYPE | DEFAULT VALUE |
---|---|
|
|
The node displayed in the button when there is no selection.
TYPE | DEFAULT VALUE |
---|---|
|
|
A function (or React component), used to display the button label.
selectedLabel
(String
): label of the selected item.
selectedIndex
(Number
): index of the selected item.
TYPE | DEFAULT VALUE |
---|---|
| None (required) |
This callback is called whenever the user selects a new item.
index
(Number
): Index of the newly selected item in props.items
.
items
(Array
): the items passed in props.items
.
TYPE | DEFAULT VALUE |
---|---|
|
|
Set this prop to the index of the active item. Set to -1
to unselect and display the placeholder.
TYPE | DEFAULT VALUE |
---|---|
|
|
Takes the full width if set to true
.
TYPE | DEFAULT VALUE |
---|---|
| None |
Use this prop to set the CSS width of the button.
TYPE | DEFAULT VALUE |
---|---|
|
|
Disable the DropDown.