Karteikarte (Flashcard) — component.flashcard
Karteikarte mit zwei Seiten: Vorderseite (Hinweiszeile, Bild oder Emoji, Text), Rueckseite (Text, zweite Zeile). Umdrehen per Antippen der Karte, Knopf, Leertaste oder Taste (flipKey, als Tastenkappe gezeigt); meldet flip. Tonknopf je Seite (audio) meldet speak - die Seite spielt den Ton. Kurze Ruec
Beispiele
Vorderseite mit Emoji und Hinweis
Umgedreht mit Tonknopf
Nach der Einschaetzung: gewusst
Einseitig: Wort kennenlernen
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
front | object | [] |
back | object | [] |
flipped | boolean | false |
flippable | boolean | true |
flipOn | string: both | tap | button | "both" |
flipKey | string | "1" |
controlled | boolean | false |
audio | string: none | front | back | both | "none" |
tone | string: | success | danger | "" |
size | string: md | lg | "md" |
flipLabel | string | "" |
speakLabel | string | "" |
disabled | boolean | false |
Events & Slots
Events: flip, speak
Slot front: akzeptiert component.*, ui.*, layout.*
Slot back: akzeptiert component.*, ui.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--flashcard-accent | var(--app-control-primary, var(--color-action-primary)) |
--flashcard-surface | var(--color-surface-default) |
--flashcard-turn | var(--motion-drop, var(--duration-slow)) |
Genutzte Design-Tokens
app.control-primary border.emphasis border.hairline color.action.primary color.border.default color.control.background color.control.border color.status.danger color.status.success color.surface.default color.surface.sunken color.text.default color.text.muted control.height duration.fast duration.slow easing.standard elevation.control focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.control radius.full radius.sm radius.surface size.1 size.2 size.3 size.4 size.5 size.6 state.disabled-opacity text.2xl text.3xl text.lg text.md text.sm text.xs weight.medium weight.semibold