Loading...
Installation
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Composition
NativeSelect ├── NativeSelectOptGroup (optional) └── NativeSelectOption
Examples
Controlled
Loading...
Default
Loading...
Disabled
Loading...
Grouped Options
Loading...
In A Form
Loading...
Invalid State
Loading...
Sizes
Loading...
API Reference
NativeSelect
| Prop | Type | Default |
|---|---|---|
size | "default" | "lg" | "sm" | "xl" | "default" |
Angular
React
Solid
Svelte
Vue