Select
View Source
Props
Accepts InputBox props.
ReactNode
Usually accepts Select.OptionGroup
and Select.Option
.
boolean
Controls the initial Popover state: open or closed (default).
unknown
Initial value
when component is uncontrolled.
boolean
Disables the select.
any
The value to show when nothing is selected
any
Gain access to the internal ref
boolean
Attempts to keep popover in view clipping edges if too large.
boolean
Locks external scrollbars when open.
boolean | 'minimum'
Matches anchor and popover widths.
IsMultiple
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.
unknown
Callback when an option has been selected/deselected.
Array
Pass 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.
object
Accepts any valid Popover props.
HTMLElement | string
Where 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) => ReactNode
Control how the selected value is displayed.
Object
Wraps Select
in a Tooltip
component. Accepts any valid Tooltip
props.
unknown
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.