Select

オプションをコンテンツ投影するフォームコントロールとしてのネイティブセレクト。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 対応

使い方

Selected: en

インポート

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

API リファレンス

SoneSelectComponentコンポーネント

セレクター
sone-select
入力
名前型 デフォルト
ariaLabelstring | nullnull
sizeNativeSelectSize"default"
selectIdstring | nullnull
namestring | nullnull
invalidbooleanfalse
ariaDescribedby

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

string | nullnull
value双方向

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
出力
名前型
selectionChange

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

string