Select

Un select natif utilisable comme contrôle de formulaire, avec options projetées.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Utilisation

Selected: en

Importation

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

Référence de l’API

SoneSelectComponentComposant

Sélecteur
sone-select
Inputs
NomType Par défaut
ariaLabelstring | nullnull
sizeNativeSelectSize"default"
selectIdstring | nullnull
namestring | nullnull
invalidbooleanfalse
ariaDescribedby

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

string | nullnull
valuebidirectionnel

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
Outputs
NomType
selectionChange

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

string