GraphState

Build the three cells that draw one state box at (col, row).

Import

svelte
import { GraphState } from 'markgraphy';

Basic usage

svelte
<GraphState
  title="example"
  animated={true}
  speedMs={700}
/>
[ example ]

state machine, stepping through

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge as [ TITLE ]. Uppercase, 1–2 words.
animated?booleantrueAnimate the state cycle. Default true. Reduced motion freezes on the start state.
speedMs?number700Milliseconds per state step. Default 700.
label?string'state machineShort caption under the art; the chart itself is the message.
class?string''

Exported types

  • GraphStateProps

Reduced motion

Animation is disabled under prefers-reduced-motion.