antd
Version:
An enterprise-class UI design language and React components implementation
21 lines (20 loc) • 608 B
TypeScript
import * as React from 'react';
import type { TextAreaProps } from 'rc-textarea';
import type { DirectionType } from '../config-provider';
interface EditableProps {
prefixCls: string;
value: string;
'aria-label'?: string;
onSave: (value: string) => void;
onCancel: () => void;
onEnd?: () => void;
className?: string;
style?: React.CSSProperties;
direction?: DirectionType;
maxLength?: number;
autoSize?: TextAreaProps['autoSize'];
enterIcon?: React.ReactNode;
component?: string;
}
declare const Editable: React.FC<EditableProps>;
export default Editable;