Skip to content

TextArea

The <TextArea> component renders a <textarea> element where the value prop is bound and which includes all of Formula’s required handlers.

const form = useForm({
initialValues: { content: "" }
});
return (
<TextArea field={form("content")} />
)
function TextArea(props: {
/** The field to associate with this textarea */
field: FormField<string>
} & Omit<ComponentProps<"textarea">, "value">)

<TextArea> supports all props of the native <textarea>, except for value which is bound automatically.