Measured entry

shadcn-textarea

textareaunclassified

A copy-in React wrapper around the native textarea, shipped through the shadcn registry rather than as a standalone component package. It forwards native props and adds Tailwind utility classes for sizing, focus, disabled, invalid, and dark states. Its class merger relies on the project's cn helper, backed here by clsx and tailwind-merge.

Specimen
Harness screenshot of shadcn-textarea at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-textarea at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-textarea at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for shadcn-textarea
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal29.1 KB (94.6 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A dependable, intentionally thin textarea primitive. It builds and mounts cleanly without a provider, stays close to native browser behavior, and is easy to adapt. Choose it for visual consistency, not for advanced input behavior or a complete field abstraction.

Use it if

  • You want a native textarea that matches an existing shadcn and Tailwind form system.
  • You need a small source-owned primitive that accepts ordinary textarea props and local class overrides.
  • You want built-in styling hooks for focus, disabled, invalid, placeholder, and dark states.

Skip it if

  • Your project does not use Tailwind and you do not want to translate utility classes into local CSS.
  • You need autosizing logic, character counts, validation messages, or form-field composition included in the component.
  • You prefer a packaged dependency with upstream updates instead of copied source maintained in your repository.

Install

Installation record for shadcn-textarea
Declared dependenciesclsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add React, Tailwind with the referenced theme tokens and dark-state conventions, plus clsx and tailwind-merge. Create the cn class-merging helper or replace it with your own utility, then copy the component and adjust its import alias.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/shadcn-ui/ui
License
MIT
Record published
2026-08-16

Alternatives

Other published entries for the textarea pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.