Mehrzeiliges Textfeld — ui.textarea
Mehrzeiliges Formularfeld mit Label, Zuständen und Formular-Tokens; 1.4 (opt-in): appearance code = Quelltext-Feld im Look von component.code-block
Beispiele
Klein (sm) — dieselbe Höhe wie ui.button--sm
Gross (lg) — dieselbe Höhe wie ui.button--lg
Standard
Mit Wert + Hinweis
Fehlerzustand
Deaktiviert
Pflichtfeld
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
controlId | string | "" |
label | string | "" |
name * | string | — |
value | string | "" |
placeholder | string | "" |
rows | number | 4 |
appearance | string: default | code | "default" |
disabled | boolean | false |
invalid | boolean | false |
hint | string | "" |
size | string: sm | md | lg | "md" |
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 |
|---|---|
--textarea-background | var(--form-background) |
--textarea-border | var(--form-border) |
Genutzte Design-Tokens
border.hairline color.accent color.accent-soft color.border.error color.code.border color.code.muted color.code.surface color.code.surface-raised color.code.text color.status.danger color.text.default color.text.disabled color.text.muted container.md duration.fast easing.standard elevation.inset focus.ring-color focus.ring-width font.family.default font.family.mono form.background form.background-disabled form.border form.border-focus form.border-hover form.error form.placeholder leading.base radius.surface size.1 size.3 size.4 size.5 size.6 text.lg text.md text.sm text.xs weight.medium