Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Field examples · Text Areas

Textarea with Description Field for React

A feedback textarea with a description below it.

Framework
UI library

A Textarea with a note under it: the Feedback field is followed by a FieldDescription that invites people to share their thoughts about the service.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

Where does the helper text sit?

The order is FieldLabel, Textarea, then FieldDescription. The description reads Share your thoughts about our service.

How tall is the feedback box?

rows is 4. The placeholder is Your feedback helps us improve..., and it clears once someone types.

How does the Feedback label connect?

FieldLabel names the Textarea. Its htmlFor matches the control's id. The label text is Feedback.

Does the description stay while someone types?

Yes. FieldDescription stays under the box. The placeholder is the only text that clears on input.

Is this field a row?

No. orientation is unset, so the label stays above the textarea. max-w-md caps the width.

How do I move the sentence above the box?

Place FieldDescription between FieldLabel and Textarea. Use that order when the sentence is a rule people need before they type.