UNPKG

@cimpress/react-components

Version:
15 lines 506 B
import React from '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) => React.JSX.Element; //# sourceMappingURL=CodeBlock.d.ts.map