Select

Un select nativo come controllo di modulo con opzioni proiettate.

Disponibile in
  • Angular: disponibile
  • Vue: disponibile
  • React: disponibile
  • React Native: disponibile

Utilizzo

Selected: en

Importazione

ts
import {
  SoneSelectComponent,
} from "@surface-one/angular/select";

Riferimento API

SoneSelectComponentComponente

Selettore
sone-select
Input
NomeTipo Predefinito
ariaLabelstring | nullnull
sizeNativeSelectSize"default"
selectIdstring | nullnull
namestring | nullnull
invalidbooleanfalse
ariaDescribedby

Extra ids for `aria-describedby` on the inner `<select>`.

string | nullnull
valuebidirezionale

The selected value for `[(value)]`. `valueChange` fires only when the user picks an option — a forms write (`writeValue` from `formControl` / `ngModel`) updates the display without emitting it.

string""
disabledbooleanfalse
Output
NomeTipo
selectionChange

Fires ONLY when the user picks an option — never on any programmatic write.

string