Components
Textarea Field

Textarea Field

A textarea field component for use inside a form, used for multi line text input

Usage

import { TextAreaField } from '@/components/ui/formfield';
 
export function TextAreaFieldDemo() {
  return <TextAreaField name="message" maxLength={228} placeholder="Type your message here." />;
}
import { TextAreaField } from '@/components/ui/formfield';
 
export function TextAreaFieldDemo() {
  return <TextAreaField name="message" maxLength={228} placeholder="Type your message here." />;
}

API Reference

PropTypeDefault
name*string
idstring
labelstring
placeholderstring
requiredboolean
readOnlyboolean
errorstring
valuestring
onChangeevent
classNamestring
rowsnumber
colsnumber
maxLengthnumber