UNPKG

@cimpress/react-components

Version:
15 lines 505 B
/// <reference types="react" /> import { PublicComponentProps } from './types'; export type CodeBlockTheme = 'light' | 'dark'; export interface CodeBlockProps extends PublicComponentProps { /** * The code string to highlight and format */ code: string; /** * The theme either light or dark, defaults to light */ theme?: CodeBlockTheme; } export declare const CodeBlock: ({ code, theme, ...props }: CodeBlockProps) => JSX.Element; //# sourceMappingURL=CodeBlock.d.ts.map