Auswahlfeld — ui.select
Auswahlfeld (native select) mit Optionen-Array, Zuständen und Formular-Tokens
UI Elementv1.4.5Formulareweb.documentweb.applicationdesktop.shell
Beispiele
Klein (sm) — dieselbe Höhe wie ui.button--sm
Gross (lg) — dieselbe Höhe wie ui.button--lg
Mit Platzhalter
Vorausgewählt
Fehlerzustand
Zahlungsart ist erforderlich.
Deaktiviert
Gruppen + deaktivierte Option
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
controlId | string | "" |
label | string | "" |
name * | string | — |
options * | array | — |
optionsPlaceholder | string | "" |
optionsPlaceholderPosition | string: before | after | "before" |
value | string | "" |
placeholder | string | "" |
disabled | boolean | false |
invalid | boolean | false |
hint | string | "" |
size | string: sm | md | lg | "md" |
required | boolean | false |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: change
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--select-background | var(--form-background) |
--select-border | var(--form-border) |
Genutzte Design-Tokens
border.hairline color.accent color.accent-soft color.border.error color.status.danger color.text.default color.text.disabled color.text.muted container.sm control.height control.pad-x duration.fast easing.standard focus.ring-color focus.ring-width font.family.default form.background form.background-disabled form.border form.border-focus form.border-hover form.error leading.base radius.control size.05 size.1 size.3 text.lg text.md text.sm text.xs weight.medium