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
Prop | Type | Default |
---|---|---|
name* | string | |
id | string | |
label | string | |
placeholder | string | |
required | boolean | |
readOnly | boolean | |
error | string | |
value | string | |
onChange | event | |
className | string | |
rows | number | |
cols | number | |
maxLength | number |