Select

Natywna lista wyboru jako kontrolka formularza z projektowanymi opcjami.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: dostępny

Użycie

Selected: en

Import

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

Dokumentacja API

SoneSelectComponentKomponent

Selektor
sone-select
Wejścia
NazwaTyp Domyślnie
ariaLabelstring | nullnull
sizeNativeSelectSize"default"
selectIdstring | nullnull
namestring | nullnull
invalidbooleanfalse
ariaDescribedby

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

string | nullnull
valuedwukierunkowe

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
Wyjścia
NazwaTyp
selectionChange

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

string