UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

14 lines (13 loc) 551 B
import JSONEditorLib from 'jsoneditor'; import 'ayu-ace/dark'; import 'jsoneditor/dist/jsoneditor.min.css'; import React from 'react'; export interface JSONEditorProps { value?: unknown; onConfirm?: (value: unknown) => void; resultType?: 'text' | 'object'; } export declare const JSONEditor: React.ForwardRefExoticComponent<{ value: unknown; } & React.RefAttributes<JSONEditorLib>>; export declare const JSONEditorModal: ({ value, onConfirm, resultType, style }: JSONEditorProps & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;