UNPKG

@zeushq/design-system

Version:
14 lines (13 loc) 645 B
import React from 'react'; import { Pre } from './Pre'; declare type PreProps = Omit<React.ComponentProps<typeof Pre>, 'css'>; declare type CodeBlockProps = PreProps & { language: 'js' | 'jsx' | 'bash' | 'css' | 'diff'; value: string; line?: string; css?: any; mode?: 'static' | 'typewriter' | 'interactive'; showLineNumbers?: boolean; }; export declare const CodeBlock: React.ForwardRefExoticComponent<Pick<CodeBlockProps, "line" | "variant" | "css" | "key" | keyof React.HTMLAttributes<HTMLPreElement> | "language" | "value" | "mode" | "showLineNumbers"> & React.RefAttributes<HTMLPreElement>>; export {};