Launch sale — 60% off Pro
Contact
TextareaStandard

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Short Textarea

Compact textarea with rows={3} and min-h-0 limiting height to three lines for space-efficient multi-line input in dense layouts

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Vertical space is precious—especially in dense dashboards, sidebars, or mobile interfaces. This React textarea uses rows=3 with min-h-0 to create a compact three-line input field using shadcn/ui and Radix UI—exactly three visible lines, scrolls if content exceeds, no expansion beyond bounds. Perfect for quick notes, brief comments, short descriptions, inline editing, chat messages, feedback forms, or any interface where you need multi-line capability without sacrificing vertical real estate—controlled height, predictable layout.

Pattern created by @haydenbleasel

Installation

Questions you might have