import { type TextAreaProps as RACTextAreaProps, type TextFieldProps as RACTextFieldProps } from 'react-aria-components'; import type { ApiProps, CommonProps, FieldWithPlaceholderProps } from '../types.js'; export interface TextAreaProps extends CommonProps, FieldWithPlaceholderProps, ApiProps, Pick { /** Controls whether inputted text is automatically capitalized. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/autocapitalize). */ autoCapitalize?: RACTextAreaProps['autoCapitalize']; /** Controls whether inputted text can be autocorrected by the browser. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/autocorrect). */ autoCorrect?: 'on' | 'off'; /** Controls how many lines of text are visible by default. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows). */ rows?: number; /** Controls whether the inputted text may be checked for spelling errors. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/spellcheck). */ spellCheck?: boolean; /** * Controls how the inputted text will be wrapped for form submission. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap). * @default 'soft' */ wrap?: 'soft' | 'hard'; } /** The imperative API exposed by the `TextArea` component. */ export interface TextAreaApi { /** Focuses the text area. */ focus: () => void; /** Selects the contents of the text area. */ select: () => void; } /** * Allows users to enter multiple lines of text with a keyboard. * * See [text area usage guidelines](https://ui.cimpress.io/components/text-area/). */ declare const _TextArea: (props: TextAreaProps & import("react").RefAttributes & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null; export { _TextArea as TextArea }; //# sourceMappingURL=text-area.d.ts.map