Select
View Source
Props
any
The value to show when nothing is selected
boolean
Controls the initial Popover state: open or closed (default).
boolean
Allows multiple selection of values. Note that value must be an array if using a controlled component and multiple is true.
string
Sets internal hidden input[s] to the current selected value[s]. Useful for components that collect data outside of React and need to be posted to a form.
Function
Callback when an option has been selected/deselected. returns { value, selectedValue }
Array
Pass an object instead of children
for use when rendering in a non React environment.
number | string | ReactElement | Array | Function
Control how the selected value is displayed.
Object
Wraps Select
in a Tooltip
component. Accepts any valid Tooltip
props.
boolean | string | number | Array | Function
Selected value[s]. Accepts any value besides undefined
, also accepts a function that returns
each Option
’s value
to determine what should be currently selected.
boolean | string | number | Array | Function
Initial value
when component is uncontrolled.
object
Accepts any valid Popover props.