Components
NativeSelect
Styled wrapper around a real native <select>, so it stays controlled and
accessible through standard select props (value/defaultValue/onChange)
and keeps the platform's keyboard and mobile picker behaviour.
Usage
Best practices
NativeSelectwraps a real<select>- use standardvalue/defaultValue/onChangeandNativeSelectOption/NativeSelectOptGroupchildren, notSelectparts.Reach for
NativeSelectwhen the native mobile picker and zero-JS behaviour matter; useSelectwhen you need custom-rendered option content or styling.It has no built-in label - associate a
LabelviahtmlFor/idfor an accessible name.
Props
Also exports
- component
NativeSelect - component
NativeSelectOptGroup - component
NativeSelectOption
Composition
Builds on