LineNumbers
Renders line numbers for the CodeBlock
component.
API Reference
LineNumbers
View Sourcetokens
Awaited<ReturnType<typeof getTokens>>
Tokens to render from getTokens
.
highlightRanges
string
A string of comma separated lines and ranges to highlight.
css
CSSObject
CSS object to apply to the line numbers container.
className
string
Class name to apply to the line numbers container.
style
React.CSSProperties
Style to apply to the line numbers container.