@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
16 lines (15 loc) • 476 B
TypeScript
import './DataEditor.css';
export type DataEditorLanguages = 'json' | 'yaml' | 'markdown';
export declare function DataEditor(props: {
id?: string;
name: string;
language: DataEditorLanguages;
value: string;
onChange: (value: string) => void;
setError: (error?: string) => void;
isReadOnly?: boolean;
className?: string;
lineNumbers?: boolean;
onFocus?: () => void;
onBlur?: () => void;
}): import("react/jsx-runtime").JSX.Element;