<CodeStepper>
Progressive code reveal with line ranges and highlights.
| Name | Type | Default | Description |
|---|---|---|---|
children | string | — | Source code as a string child. |
language? | string | — | Language for the highlighter. |
highlighter? | ComponentType<HighlighterProps> | — | Renderer — e.g. from useShikiHighlighter(). |
steps | CodeStep[] | — | Per-step lines / highlights / focus / annotations. |
CodeStep shape:
interface CodeStep { lines?: [number, number] highlight?: number[] focus?: [number, number] annotation?: ReactNode annotationLine?: number}