UNPKG

fictoan-react

Version:

A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.

17 lines (16 loc) 791 B
import React from "react"; import { CommonAndHTMLProps } from '../Element/constants'; export interface CodeBlockCustomProps { source?: object | string; language?: string; showCopyButton?: boolean; showLineNumbers?: boolean; description?: string; withSyntaxHighlighting?: boolean; makeEditable?: boolean; onChange?: (content: string) => void; } export type CodeBlockElementType = HTMLPreElement; export type CodeBlockProps = Omit<CommonAndHTMLProps<CodeBlockElementType>, keyof CodeBlockCustomProps> & CodeBlockCustomProps; export declare const CodeBlock: React.ForwardRefExoticComponent<Omit<CommonAndHTMLProps<HTMLPreElement>, keyof CodeBlockCustomProps> & CodeBlockCustomProps & React.RefAttributes<HTMLPreElement>>; //# sourceMappingURL=CodeBlock.d.ts.map