react-quill-ver2
Version:
React Quill editor for Quill 2.0
25 lines (21 loc) • 691 B
text/typescript
import Quill, { QuillOptions } from 'quill';
export { default as Quill } from 'quill';
import * as react from 'react';
interface ReactQuillProps {
value?: string;
defaultValue?: string;
onChange?: (content: string) => void;
options?: QuillOptions;
readOnly?: boolean;
placeholder?: string;
theme?: string;
modules?: QuillOptions['modules'];
formats?: string[];
style?: React.CSSProperties;
className?: string;
}
interface ReactQuillRef {
getEditor: () => Quill | null;
}
declare const ReactQuill: react.ForwardRefExoticComponent<ReactQuillProps & react.RefAttributes<ReactQuillRef>>;
export { type ReactQuillProps, ReactQuill as default };