Skip to content

Types

interface ShikiConfig {
theme?: string
themes?: { light: string; dark: string }
langs?: string[]
}

HighlighterProps (from @react-slides/core):

interface HighlighterProps {
code: string
language: string
lines: { number: number; highlighted: boolean; dimmed: boolean }[]
}

CodeStepper passes only the lines of the current step’s range as code, and lines[i] describes line i of code. number is the line’s position in the full snippet (3–5 for a step with lines: [3, 5]): use it for line numbers, and look tokens up by index when writing your own highlighter.