@cimpress/react-components
Version:
React components to support the MCP styleguide
15 lines • 505 B
TypeScript
/// <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