UNPKG

reactjs-content-editable

Version:
18 lines (17 loc) 602 B
import * as React from 'react'; export declare type ContentEditableProps = { html: string; disabled?: boolean; className?: string; style?: React.CSSProperties; innerRef?: React.LegacyRef<HTMLDivElement> | React.RefObject<HTMLDivElement> | string | null; onChange: any; }; /** * ContentEditable Component * @param html - html content * @param onChange - return the updated html content * @returns */ declare const ContentEditable: ({ html, disabled, className, style, innerRef, onChange, }: ContentEditableProps) => JSX.Element; export { ContentEditable };