Skip to content

<DiagramStepper>

Coordinate visibility + highlight of regions inside a diagram (SVG, MermaidAdapter, …).

Each diagram step is one slide step. The stepper registers its step count with the enclosing <Slide>, so no steps prop is needed on the slide.

NameTypeDefaultDescription
childrenReactNode—Diagram content with `<DiagramRegion>` children.
stepsDiagramStep[]—Per-step region show/hide/highlight.
animation?RegionAnimation—CSS transition preset (see plugin-motion).

DiagramStep:

interface DiagramStep {
show?: string[]
hide?: string[]
highlight?: string[]
className?: string
}