Eingabegruppe
Eingabefeld mit Prefix-/Suffix-Addons im gemeinsamen Rahmen (€-Zeichen, Einheiten, Icons) — der Bootstrap-input-group-Fall für Preis- und Einheitenfelder. 1.1.0: Varianten shape (pill) und addonStyle (plain) als reine Markup-Klassen. 1.2.0: type=password mit reveal = Augen-Knopf (ui.icon-button als
Nutzt: ui.icon ui.icon-button
Beispiele
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| label | string | "" | Beschriftung |
| name | string | "" | Feldname |
| value | string | "" | Wert |
| placeholder | string | "" | Platzhalter |
| type | string: text | number | search | email | url | tel | password | "text" | Typ |
| reveal | boolean | false | Passwort anzeigen (Umschalter) |
| copyable | boolean | false | Kopier-Knopf |
| readonly | boolean | false | Nur lesen |
| autocomplete | string: | off | current-password | new-password | username | email | "" | Autovervollständigung |
| prefix | string | "" | Prefix-Text (z. B. €) |
| suffix | string | "" | Suffix-Text (z. B. kg) |
| prefixIcon | string | "" | Prefix-Icon |
| suffixIcon | string | "" | Suffix-Icon |
| disabled | boolean | false | Deaktiviert |
| invalid | boolean | false | Fehlerzustand |
| hint | string | "" | Hinweis |
| shape | string: control | pill | "control" | Form (control = Standard-Rundung, pill = Kapsel) |
| addonStyle | string: boxed | plain | "boxed" | Addon-Stil (boxed = eigene Flaeche, plain = ohne Flaeche und Trennlinie) |
| 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
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 |
|---|---|
--input-group-border | var(--form-border, var(--color-border-default)) |
--input-group-background | var(--form-background, var(--color-surface-default)) |
--input-group-addon-background | var(--color-surface-sunken) |
--input-group-radius | var(--radius-control) |
Genutzte Design-Tokens
LLM-Notizen
component.input-group
Eingabefeld mit Prefix-/Suffix-Addons im gemeinsamen Rahmen (Währungszeichen, Einheiten, Icons).
Wann nutzen
- Preis-, Mengen- oder Einheitenfelder, bei denen ein festes Symbol im Feldrahmen sitzt.
- Für ein schlichtes Feld ohne Addon das normale
ui.input.
Wichtige Props
label= Beschriftungname= Feldnamevalue= Wertplaceholder= Platzhaltertype=text|number|search|email|url|telprefix/suffix= Text-Addon links/rechts (z. B. €, kg)prefixIcon/suffixIcon= Icon-Addon links/rechtsdisabled= deaktiviertinvalid= Fehlerzustandhint= Hinweis unter dem Feld
Beispiel-Node
{ "definition": "component.input-group", "props": { "label": "Preis", "name": "preis", "type": "number", "prefix": "€" } }