Select
View Source
Props
anyThe value to show when nothing is selected
booleanControls the initial Popover state: open or closed (default).
booleanAllows multiple selection of values. Note that value must be an array if using a controlled component and multiple is true.
stringSets 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.
FunctionCallback when an option has been selected/deselected. returns { value, selectedValue }
ArrayPass an object instead of children for use when rendering in a non React environment.
number | string | ReactElement | Array | FunctionControl how the selected value is displayed.
ObjectWraps Select in a Tooltip component. Accepts any valid Tooltip props.
boolean | string | number | Array | FunctionSelected 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 | FunctionInitial value when component is uncontrolled.
objectAccepts any valid Popover props.