Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Field examples · Text Areas

Textarea with Detailed Instructions Field for React

An issue report textarea with detailed instructions above it and a numbered-steps placeholder.

Framework
UI library

Get bug reports people can act on. A FieldDescription above the Issue Description field says what to include, and the placeholder lays out numbered steps, so the Textarea itself shows the expected shape.

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 do the instructions sit?

FieldDescription is between FieldLabel and Textarea. It asks for the issue, steps to reproduce, and says the team reviews within 24 hours.

How tall is the issue box?

rows is 5. The label is Issue Description, and FieldLabel names the textarea. Its htmlFor matches the control's id.

What does the placeholder show?

The placeholder is a numbered sample that starts 1. I tried to... and continues 2. Then I.... A newline entity in the placeholder string splits those steps, and the sample clears once someone types.

Do the instructions stay visible while typing?

Yes. FieldDescription stays above the box. The numbered sample is only the placeholder.

Is this field horizontal?

No. orientation is unset, so the label, the instructions, and the box stack. max-w-md caps the width.

How do I show an error under the instructions?

Keep the instructions in FieldDescription. Set invalid on Field and render the message with FieldError.