Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/formsmd/formsmd/llms.txt

Use this file to discover all available pages before exploring further.

The textareaInput is created using the textInput method with the multiline parameter set to true.

Overview

The textarea input allows users to enter multiple lines of text, making it ideal for collecting longer responses like feedback, comments, or descriptions.

Method Signature

textInput(
  name: string,
  params: FormFieldSharedParamsType & { multiline: true } & TextInputParamsType
): string

Parameters

name
string
required
The unique identifier for this input field.

Required Parameters

question
string
required
The main question or label displayed to the user.
multiline
boolean
required
Must be set to true to render a textarea element instead of a single-line input.

Input-Specific Parameters

placeholder
string
Sets the placeholder text displayed when the textarea is empty.
placeholder: "Tell us about your experience..."
maxlength
number
Sets the maximum number of allowed characters.
maxlength: 500
value
string
Sets the default value of the textarea.
value: "This is default text"

Shared Parameters

All standard form field parameters are supported. See textInput for the complete list of shared parameters including required, description, fieldSize, disabled, and more.

Examples

const composer = new Composer({ title: "Feedback Form" });

composer.textInput("feedback", {
  question: "Tell us about your experience",
  multiline: true,
  required: true,
  placeholder: "Share your thoughts here..."
});

Use Cases

Perfect for collecting detailed user feedback, reviews, or testimonials.
composer.textInput("review", {
  question: "How was your experience with our product?",
  multiline: true,
  required: true,
  maxlength: 1000,
  placeholder: "Please share your honest feedback"
});

Best Practices

Use maxlength to prevent overly long responses and guide users on expected response length:
  • Short responses (bio, tagline): 150-300 characters
  • Medium responses (feedback, comments): 500-1000 characters
  • Long responses (essays, detailed descriptions): 2000-5000 characters
Use placeholders to show example responses or guide users on what to include:
placeholder: "Example: I love this product because...\n\nIt has helped me to..."
Add descriptions to clarify expectations:
description: "Please be as specific as possible. Include examples if relevant."

Return Value

Returns a string containing the Forms.md markup for the textarea input field.

textInput

Single-line text input

emailInput

Email input with validation