Invisible Docs
GalerieTokens

Zuganzeige (Turn Indicator) — component.turn-indicator

Zuganzeige fuer Brett- und Wuerfelspiele: wer ist dran (ui.player-token und Titel) und was ist zu tun (Aufforderung wie Wuerfle oder Waehle eine Figur), optional mit Restzeit als Text und Balken. Titel und Aufforderung stehen in einem Live-Bereich und werden vorgelesen, die Restzeit nicht bei jedem

Componentv1.2.0Statusweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Mia ist dran: wuerfeln

Mia ist dranWürfle!

Eigener Zug mit Restzeit

Du bist dranWähle einen Würfel
0:18

Bot zieht, wenig Zeit

Robo ist dranRobo überlegt …
0:04

Eigenschaften

PropTypDefault
namestring""
titlestring""
promptstring""
avatarSrcstring""
colorstring: red | blue | green | amber | violet | teal | pink | orange"red"
shapestring: circle | square | triangle | star | diamond | hexagon | heart | pentagon | mushroom | flower | clover | moon | droplet | crown | cloud | zap"circle"
kindstring: human | bot"human"
selfbooleanfalse
timeRemainingnumber-1
timeTotalnumber0
timeUrgentnumber5
timePausedbooleanfalse
timeLabelstring""
variantstring: card | pill"card"

Events & Slots

Events: expire

Stellschrauben (Komponenten-Tokens)

TokenDefault
--turn-indicator-colorvar(--tag-red-tone, var(--color-chart-8))
--turn-indicator-surfacevar(--color-surface-default)
--turn-indicator-textvar(--color-text-default)
--turn-indicator-mutedvar(--color-text-muted)
--turn-indicator-trackvar(--color-surface-sunken)
--turn-indicator-glassvar(--game-stage-glass, color-mix(in srgb, var(--color-surface-inverse) 62%, transparent))
--turn-indicator-glass-bordervar(--game-stage-glass-border, color-mix(in srgb, var(--color-text-inverse) 22%, transparent))
--turn-indicator-glass-textvar(--game-stage-glass-text, var(--color-text-inverse))
--turn-indicator-glass-mutedvar(--game-stage-glass-muted, color-mix(in srgb, var(--color-text-inverse) 72%, transparent))

Genutzte Design-Tokens

blur.md border.emphasis border.hairline border.thick color.chart.1 color.chart.2 color.chart.3 color.chart.4 color.chart.5 color.chart.6 color.chart.7 color.chart.8 color.status.danger color.surface.default color.surface.inverse color.surface.sunken color.text.default color.text.inverse color.text.muted duration.base duration.slow easing.out font.family.default leading.tight radius.control radius.full shadow.overlay-small size.05 size.1 size.12 size.2 size.3 size.4 tag.amber.tone tag.blue.tone tag.green.tone tag.orange.tone tag.pink.tone tag.red.tone tag.teal.tone tag.violet.tone text.lg text.md text.sm text.xs weight.bold weight.medium weight.semibold