Getting Started
Foundations
Components
Search for a command to run...
Textareas provide users with a resizable input field for entering multiple lines of text, making them ideal for comments, descriptions, messages, or any content that requires more space than a single-line input. They automatically handle line breaks and typically include visual affordances like resize handles that let users adjust the input area to their needs. Textareas support all standard input attributes and validation patterns while maintaining consistent styling and accessibility features.
Use textareas when you expect users to enter more than one line of text or when the content length is unpredictable and potentially lengthy. They work well for feedback forms, message composition, biographical information, or detailed descriptions. Textareas should be sized appropriately for their expected content, with minimum heights that accommodate several lines to signal that longer input is expected and welcomed.
import { Textarea } from "@strongtie/design-system/textarea"All components accept standard HTML attributes and React props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
textareaEnsure proper accessibility attributes are added when implementing this component.