Theme: ← Übersicht Tokens

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

Components v1.4.2 Formulare WebsiteAppDesktop component.input-group

Nutzt: ui.icon ui.icon-button

Beispiele

Preisfeld (€-Prefix)
Einheit als Suffix
Suche mit Icon
Fehlerzustand

Eigenschaften

PropTypDefaultBuilder-Label
labelstring""Beschriftung
namestring""Feldname
valuestring""Wert
placeholderstring""Platzhalter
typestring: text | number | search | email | url | tel | password"text"Typ
revealbooleanfalsePasswort anzeigen (Umschalter)
copyablebooleanfalseKopier-Knopf
readonlybooleanfalseNur lesen
autocompletestring: | off | current-password | new-password | username | email""Autovervollständigung
prefixstring""Prefix-Text (z. B. €)
suffixstring""Suffix-Text (z. B. kg)
prefixIconstring""Prefix-Icon
suffixIconstring""Suffix-Icon
disabledbooleanfalseDeaktiviert
invalidbooleanfalseFehlerzustand
hintstring""Hinweis
shapestring: control | pill"control"Form (control = Standard-Rundung, pill = Kapsel)
addonStylestring: boxed | plain"boxed"Addon-Stil (boxed = eigene Flaeche, plain = ohne Flaeche und Trennlinie)
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""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.

TokenDefault
--input-group-bordervar(--form-border, var(--color-border-default))
--input-group-backgroundvar(--form-background, var(--color-surface-default))
--input-group-addon-backgroundvar(--color-surface-sunken)
--input-group-radiusvar(--radius-control)

Genutzte Design-Tokens

border.hairlinecolor.border.defaultcolor.border.errorcolor.status.dangercolor.status.successcolor.surface.defaultcolor.surface.sunkencolor.text.defaultcolor.text.disabledcolor.text.mutedcolor.text.placeholdercontrol.heightcontrol.pad-yduration.fasteasing.standardfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultform.backgroundform.borderradius.controlradius.fullsize.1size.2size.3size.4text.mdtext.smweight.semibold

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 = Beschriftung
  • name = Feldname
  • value = Wert
  • placeholder = Platzhalter
  • type = text | number | search | email | url | tel
  • prefix / suffix = Text-Addon links/rechts (z. B. €, kg)
  • prefixIcon / suffixIcon = Icon-Addon links/rechts
  • disabled = deaktiviert
  • invalid = Fehlerzustand
  • hint = Hinweis unter dem Feld

Beispiel-Node

{ "definition": "component.input-group", "props": { "label": "Preis", "name": "preis", "type": "number", "prefix": "€" } }