Eingabefeld — ui.input
Einzeiliges Formularfeld mit Label, Zuständen (disabled, invalid) und Formular-Tokens. 1.7.0: appearance=underline (ohne Fläche, nur Linie unten) für Eingaben im Textfluss. 1.7.1: width=full füllt die Breite auch im Desktop. 1.8.0: reveal (opt-in, nur type password) - Schloss im Feld schaltet zwisch
Beispiele
Klein (sm) — dieselbe Höhe wie ui.button--sm
Gross (lg) — dieselbe Höhe wie ui.button--lg
Standard mit Label
Mit Wert + Hinweis
Fehlerzustand
Deaktiviert
Passwort
Termin mit Datum und Uhrzeit (datetime-local, 1.13.0)
Pflichtfeld + readonly-Beispiel
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
maxlength | number | 0 |
accept | string | "" |
reveal | boolean | false |
rules | array | [] |
lockedBy | object | [] |
multiple | boolean | false |
controlId | string | "" |
autocomplete | string: | on | off | organization | given-name | family-name | email | username | current-password | new-password | "" |
label | string | "" |
name * | string | — |
value | string | "" |
placeholder | string | "" |
type | string: text | email | password | number | search | tel | url | file | hidden | date | time | datetime-local | "text" |
disabled | boolean | false |
invalid | boolean | false |
hint | string | "" |
size | string: sm | md | lg | "md" |
appearance | string: field | underline | "field" |
required | boolean | false |
readonly | 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 |
|---|---|
--input-background | var(--form-background) |
--input-border | var(--form-border) |
--input-color | var(--color-text-default) |
Genutzte Design-Tokens
border.hairline color.accent color.accent-soft color.border.error color.status.danger color.status.success color.surface.sunken color.text.default color.text.disabled color.text.muted container.sm control.height control.pad-x duration.fast easing.standard elevation.inset focus.ring-color focus.ring-width font.family.default form.background form.background-disabled form.border form.border-focus form.border-hover form.error form.placeholder leading.base radius.full size.05 size.1 size.2 size.3 size.4 size.6 size.8 text.lg text.md text.sm text.xs weight.medium