Invisible Docs
GalerieTokens

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

Componentv1.0.0Inhaltweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Vorderseite mit Emoji und Hinweis

Wie heißt das auf Englisch?Der Vogel singt.

Umgedreht mit Tonknopf

The bird sings.Der Vogel singt.
The bird sings. Der Vogel singt.

Nach der Einschaetzung: gewusst

bread
bread

Einseitig: Wort kennenlernen

der Apfelapple

Eigenschaften

PropTypDefault
frontobject[]
backobject[]
flippedbooleanfalse
flippablebooleantrue
flipOnstring: both | tap | button"both"
flipKeystring"1"
controlledbooleanfalse
audiostring: none | front | back | both"none"
tonestring: | success | danger""
sizestring: md | lg"md"
flipLabelstring""
speakLabelstring""
disabledbooleanfalse

Events & Slots

Events: flip, speak

Slot front: akzeptiert component.*, ui.*, layout.*

Slot back: akzeptiert component.*, ui.*, layout.*

Stellschrauben (Komponenten-Tokens)

TokenDefault
--flashcard-accentvar(--app-control-primary, var(--color-action-primary))
--flashcard-surfacevar(--color-surface-default)
--flashcard-turnvar(--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