import * as React from "react"; import { ItemProps } from "../DynamicForm"; /** * @typedef TextareaItem.TextareaField * @property {string} type - The type of the textarea field * @property {string} label - A custom label for the textarea field * @property {TextareaItem.TextareaFieldAttributes} [attributes] - Custom attributes for the form field * @private */ export interface TextareaField { type: string; label: string; attributes?: TextareaFieldAttributes; } /** * TextareaItem properties * @typedef TextareaItem.TextareaItemProps * @property {TextareaItem.TextareaField} field - The textarea field component * @extends {ItemProps} * @private */ export interface TextareaItemProps extends ItemProps { field: TextareaField; } /** * Attributes for the textarea field component * * @typedef TextareaItem.TextareaFieldAttributes * @property {string} name - The name of the textarea field * @property {string} [value] - The value of the textarea field * @property {string} [placeholder] - A custom placeholder for the textarea field * @property {boolean} [required] - Whether or not the field must be required * @property {boolean} [autocomplete] * @property {number} [rows] * @property {number} [cols] * @private */ export interface TextareaFieldAttributes { name: string; value?: string; placeholder?: string; required?: boolean; autocomplete?: boolean; rows?: number; cols?: number; readOnly?: boolean; } declare const TextareaItemThemed: React.FC & { theme?: import("@emotion/react").Theme; }>; export { TextareaItemThemed as TextareaItem };