Satz mit Lücke (Gap Text) — component.gap-text
Text mit einer oder mehreren Luecken (___ im Text). mode input: jede Luecke ist ein Eingabefeld (meldet input und submit); mode slot: die Luecke wird von aussen gefuellt (Auswahl, Kacheln) und zeigt gaps[].value. Zustand je Luecke: open, active, correct, near (fast richtig), wrong, solution - mit Fa
Beispiele
Eingabe offen, mit Uebersetzung und hervorgehobenem Wort
The is red.
Der Apfel ist rot.
Von aussen gefuellt und richtig
I see a bird.
Ich sehe einen Vogel.
RichtigFalsch getippt, mit Tipp darueber
K B I E
My is blue.
Noch nicht richtigZwei Luecken: eine fertig, eine aktiv
Good morning, Lücke 2!
Guten Morgen, Oma!
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
text | string | "" |
gaps | array | [] |
mode | string: input | slot | "input" |
hint | string | "" |
translation | string | "" |
translationMark | string | "" |
translationShown | boolean | true |
lang | string | "" |
size | string: md | lg | xl | "md" |
width | number | 6 |
maxLength | number | 40 |
label | string | "" |
status | string | "" |
disabled | boolean | false |
Events & Slots
Events: input, submit
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--gap-text-accent | var(--app-control-primary, var(--color-action-primary)) |
--gap-text-surface | var(--color-surface-default) |
Genutzte Design-Tokens
app.control-primary border.emphasis color.action.primary color.border.strong color.status.danger color.status.success color.status.warning color.surface.default color.surface.sunken color.text.default color.text.muted duration.fast duration.slow easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.control size.05 size.1 size.2 size.3 size.4 state.disabled-opacity text.2xl text.3xl text.lg text.md text.sm text.xl weight.medium weight.semibold