UNPKG

@teamix/typography

Version:
18 lines (17 loc) 524 B
import * as React from 'react'; import { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea'; interface EditableProps { prefixCls?: string; value: string; ['aria-label']?: string; onSave: (value: string) => void; onCancel: () => void; onEnd?: () => void; className?: string; style?: React.CSSProperties; direction?: 'ltr' | 'rtl' | undefined; maxLength?: number; autoHeight?: boolean | AutoSizeType; } declare const Editable: React.FC<EditableProps>; export default Editable;