Select
Component | Source Code
extends ComponentPropsWithRef<“select”>
Props Inheritance Hierarchy: ComponentPropsWithRef<“select”>
A wrapper for the native select component. Provides the ability to define the options as a prop.
Can be controlled or uncontrolled. If you intend to control the component, you must provide
a value that’s not undefined.
Properties
Section titled “Properties”onChangeSelection?: Function
Section titled “onChangeSelection?: Function”Handler for when the user attempts to change their selection in the dropdown.
options?: (SelectOption | SelectOptionGroup)[]
Section titled “options?: (SelectOption | SelectOptionGroup)[]”The options to show in the dropdown.