Select
View Source
Props
Accepts InputBox props.
ReactNodeUsually accepts Select.OptionGroup and Select.Option.
booleanControls the initial Popover state: open or closed (default).
unknownInitial value when component is uncontrolled.
booleanDisables the select.
anyThe value to show when nothing is selected
anyGain access to the internal ref
booleanAttempts to keep popover in view clipping edges if too large.
booleanLocks external scrollbars when open.
boolean | 'minimum'Matches anchor and popover widths.
IsMultipleAllows 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.
unknownCallback when an option has been selected/deselected.
ArrayPass an object instead of children for use when rendering in a non React environment.
Placement'top-start'
| 'top'
| 'top-end'
| 'right-start'
| 'right'
| 'right-end'
| 'bottom-start'
| 'bottom'
| 'bottom-end'
| 'left-start'
| 'left'
| 'left-end'
Where to place the popover.
objectAccepts any valid Popover props.
HTMLElement | stringWhere to render the popover into. Accepts an HTML element or selector.
Uses the closest fixed parent or document.body by default. This will only
be computed once on initial render.
(item: any) => ReactNodeControl how the selected value is displayed.
ObjectWraps Select in a Tooltip component. Accepts any valid Tooltip props.
unknownSelected value[s]. Accepts any value besides undefined, also accepts a function that returns
each Option’s value to determine what should be currently selected.