Textarea Component

Multi-line text input for longer messages and comments.

Usage

import { FormFlow, Textarea, SubmitButton } from '@formflow.sh/react';

function MyForm() {
  return (
    <FormFlow apiKey="ff_live_xxx">
      <Textarea
        name="message"
        label="Your Message"
        rows={5}
        required
      />
      <SubmitButton>Submit</SubmitButton>
    </FormFlow>
  );
}

Props

PropTypeRequiredDescription
namestringYesField name for form submission
labelstringNoLabel text displayed above the textarea
placeholderstringNoPlaceholder text shown when empty
rowsnumberNoNumber of visible text rows. Default: 4
requiredbooleanNoMake the field required. Default: false
disabledbooleanNoDisable the textarea. Default: false

Examples

Feedback Message

<Textarea
  name="feedback"
  label="Feedback"
  placeholder="Tell us what you think..."
  rows={6}
  required
/>

Support Ticket Description

<Textarea
  name="description"
  label="Describe your issue"
  placeholder="Please provide as much detail as possible..."
  rows={8}
/>
Textarea Component - FormFlow Documentation | FormFlow