Mehrzeiliges Textfeld
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
Erscheint auf dem Lieferschein.
Fehlerzustand
Begründung ist erforderlich.
Deaktiviert
Pflichtfeld
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| controlId | string | "" | Native Control-ID |
| label | string | "" | Label |
| name * | string | — | Feldname |
| value | string | "" | Wert |
| placeholder | string | "" | Platzhalter |
| rows | number | 4 | Zeilen |
| appearance | string: default | code | "default" | Darstellung (code = Quelltext, z. B. JSON) |
| disabled | boolean | false | Deaktiviert |
| invalid | boolean | false | Fehlerzustand |
| hint | string | "" | Hinweis/Fehlertext |
| size | string: sm | md | lg | "md" | Groesse |
| required | boolean | false | Pflichtfeld (Marker + required) |
| readonly | boolean | false | Nur lesen |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Events & Slots
Events:
⚡ change — im Surface per on: {<event>: {action, params}} verdrahtbar.
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--textarea-background | var(--form-background) |
--textarea-border | var(--form-border) |
Genutzte Design-Tokens
border.hairlinecolor.accentcolor.accent-softcolor.border.errorcolor.code.bordercolor.code.mutedcolor.code.surfacecolor.code.surface-raisedcolor.code.textcolor.status.dangercolor.text.defaultcolor.text.disabledcolor.text.mutedcontainer.mdduration.fasteasing.standardelevation.insetfocus.ring-colorfocus.ring-widthfont.family.defaultfont.family.monoform.backgroundform.background-disabledform.borderform.border-focusform.border-hoverform.errorform.placeholderleading.baseradius.surfacesize.1size.3size.4size.5size.6text.lgtext.mdtext.smtext.xsweight.medium
LLM-Notizen
ui.textarea
Mehrzeiliges Formularfeld mit Label, Zuständen und Formular-Tokens.
Wann nutzen
- Für längere, mehrzeilige Freitext-Eingaben (Kommentar, Nachricht, Beschreibung).
- Für einzeilige Eingaben stattdessen
ui.input.
Wichtige Props
label= Beschriftung.name= Feldname, Pflicht.value= Vorbelegung.placeholder= Platzhaltertext.rows= sichtbare Zeilen (2–20).disabled/readonly= gesperrt bzw. nur lesbar.invalid= Fehlerzustand.hint= Hinweis- oder Fehlertext.size=sm|md|lg— Dichte, gleiche Stufen wieui.button/ui.input.required= Pflichtfeld (Marker +required).
Beispiel-Node
{ "definition": "ui.textarea", "props": { "label": "Nachricht", "name": "message", "rows": 5, "placeholder": "Ihre Nachricht …", "required": true } }
Hinweise
sizeauf denselben Wert wie ein danebenstehender Knopf/ui.inputsetzen, damit die Felder auf einer Linie stehen.- Bei
invaliddienthintals Fehlertext.