UNPKG

@zllling/react-previewer

Version:

A React component for live code preview with compilation and error handling

14 lines 521 B
import { default as React } from 'react'; import { SourceInfo } from '../types'; export interface PreviewFrameProps { files: Record<string, string>; entryFile: string; depsInfo?: Record<string, string>; onError?: (error: Error) => void; onElementClick?: (sourceInfo: SourceInfo) => void; isInspecting?: boolean; onInspectToggle?: (enabled: boolean) => void; key?: string | number; } export declare const PreviewFrame: React.FC<PreviewFrameProps>; //# sourceMappingURL=PreviewFrame.d.ts.map