Textarea
Interface
export type ITextareaTypeValue = string;
export interface ITextareaField extends CommonField {
type: 'textarea';
options?: {
placeholder?: string;
};
private?: () => Promise<ITextareaTypeValue>;
render?: (v: ITextareaTypeValue) => JSX.Element;
validation?: Validation<ITextareaTypeValue>;
}Example
{
type: 'textarea',
name: 'YOUR_PATH',
options: {
placeholder: 'Enter your text here'
},
validation: z.string().min(1, 'Text is required').max(500, 'Text must be at most 500 characters long')
}