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
<app-native-select> ├── <optgroup appNativeSelectOptGroup> (optional) │ └── <option appNativeSelectOption> └── <option appNativeSelectOption>
Examples
Controlled
Loading...
Default
Loading...
Disabled
Loading...
Grouped Options
Loading...
In A Form
Loading...
Invalid State
Loading...
Sizes
Loading...
API Reference
<app-native-select>
Inputs
| Input | Type | Default | Description |
|---|---|---|---|
class | string | "" | Additional classes applied to the native select element. |
id | string | undefined | — | ID applied to the native select element. |
name | string | undefined | — | Name submitted with the select's form value. |
size | "default" | "lg" | "sm" | "xl" | "default" | Controls the select's visual dimensions. |
value | string | undefined | — | Selected value when controlled. Supports Angular two-way binding. |
defaultValue | string | undefined | — | Initial selected value when uncontrolled. |
disabled | boolean | false | Disables the select. |
required | boolean | false | Marks the select as required. |
invalid | boolean | false | Marks the select as invalid for assistive technology and styling. |
Outputs
| Output | Type | Description |
|---|---|---|
valueChange | string | Emits the selected value after a native change. |
Angular
React
Solid
Svelte
Vue