UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

13 lines (12 loc) • 327 B
export function createHighlightedCodeBlockProps({ className, code, decorations, highlighter, lang, lineNumbers, title, }) { return { ...highlighter.renderCodeBlockData({ code, decorations, lang, lineNumbers, title, }), className, }; }