import { type Ref } from "react"; /** * Properties and some behavior of this TextArea is based on the Text Field of MUI: * https://mui.com/material-ui/react-text-field/ */ export interface TextAreaProps { name?: string; placeholder?: string; disabled?: boolean; required?: boolean; maxLength?: number; minLength?: number; title?: string; autoFocus?: boolean; defaultValue?: string; /** If set, height will be 100% */ fullHeight?: boolean; /** Auto-grow is default. However, it is only best-effort (only works in browsers that support `field-sizing`). This prop turns it off completely. */ noAutoGrow?: boolean; /** `value` and `onChange` are optional because we want to be able to use the control in an uncontrolled manner as well (for example, in forms) */ value?: string; onChange?: (value: string) => void; ref?: Ref<{ focus: () => void; }>; } /** * @remarks Currently does not support submitting a form by pressing `Ctrl+Enter`. * TODO: Support this if the need arises: https://stackoverflow.com/q/1684196 */ declare const _default: import("react").NamedExoticComponent; export default _default;