UNPKG

next-prism

Version:

A lightweight, robust, and elegant syntax highlighting component for your next React apps.

12 lines (11 loc) 311 B
/// <reference types="react" /> export interface ICode { language?: string; children?: any; content?: any; lineNumbers?: boolean; } export declare function usePrism(): { Code: ({ language, children, content, lineNumbers, }: ICode) => JSX.Element; highlightAll: () => void; };