SelectComponentProps as props.
SelectComponentOption
The display text for the option.
The value associated with the option. Defaults to
string when no generic is provided.An optional description displayed alongside the option label.
SelectComponentProps
An optional HTML
id attribute for the select element.The list of options to display in the dropdown.
The currently selected option.
Callback invoked when the user selects an option.
Callback invoked when the select loses focus.
Placeholder text displayed when no option is selected.
When
true, the select is non-interactive and should be rendered in a visually disabled state.When
true, indicates the field is required.When
true, the select is in an error state.When
true, indicates that options are being loaded.Controls the width of the select trigger button.
'fill'— stretches to fill its container.'fit-content'— shrinks to fit its content.'auto'— intrinsic size with sensible min and max bounds.
The preferred placement of the dropdown menu relative to the trigger.
Side is 'top' | 'bottom' | 'left' | 'right' and AlignedPlacement is `${Side}-${'start' | 'end'}` (e.g. 'bottom-start').When
true, the dropdown menu should be rendered inside a React portal.An accessible label for the select. Use this when there is no visible label in the DOM.
The
id of an external element that labels this select. Pass this as the aria-labelledby
attribute on your root element to satisfy accessibility requirements when a visible label exists in the DOM.Custom render function for each option in the dropdown list.
Custom render function for the selected value displayed in the control.
A React ref that should be forwarded to the underlying DOM element.

