File: text-area.md | Updated: 11/15/2025
ThemesThemes PrimitivesPrimitives IconsIcons ColorsColors
Getting started Styling Layout Releases Resources
Overview Color Dark mode Typography Spacing Breakpoints Radius Shadows Cursors
Box Flex Grid Container Section
Text Heading Blockquote Code Em Kbd Link Quote Strong
Alert Dialog Aspect Ratio Avatar Badge Button Callout Card Checkbox Checkbox Group Checkbox Cards Context Menu Data List Dialog Dropdown Menu Hover Card Icon Button Inset Popover Progress Radio Radio Group Radio Cards Scroll Area Segmented Control Select Separator Skeleton Slider Spinner Switch Table Tabs Tab Nav Text Area Text Field Tooltip
Accessible Icon Portal Reset Slot Theme Visually Hidden
Components
Captures multi-line user input.
View source Report an issue View in Playground
<TextArea placeholder="Reply to commentā¦" />
This component is based on the textarea element and supports common margin props
.
| Prop | Type | Default |
| --- | --- | --- |
| size | Responsive<"1" \| "2" \| "3"> | "2" |
| variant<br><br>Prop description | "classic" \| "surface" \| "soft" | "surface" |
| resize | Responsive<"none" \| "vertical" \| "horizontal" \| "both"> | No default value |
| color<br><br>Prop description | enum<br><br>See full type | No default value |
| radius<br><br>Prop description | "none" \| "small" \| "medium" \| "large" \| "full" | No default value |
Use the size prop to control the size.
<Flex direction="column" gap="3">
<Box maxWidth="200px">
<TextArea size="1" placeholder="Reply to commentā¦" />
</Box>
<Box maxWidth="250px">
<TextArea size="2" placeholder="Reply to commentā¦" />
</Box>
<Box maxWidth="300px">
<TextArea size="3" placeholder="Reply to commentā¦" />
</Box>
</Flex>
Use the variant prop to control the visual style.
<Flex direction="column" gap="3" maxWidth="250px">
<TextArea variant="surface" placeholder="Reply to commentā¦" />
<TextArea variant="classic" placeholder="Reply to commentā¦" />
<TextArea variant="soft" placeholder="Reply to commentā¦" />
</Flex>
Use the color prop to assign a specific color
.
<Flex direction="column" gap="3" maxWidth="250px">
<TextArea color="blue" variant="soft" placeholder="Reply to commentā¦" />
<TextArea color="green" variant="soft" placeholder="Reply to commentā¦" />
<TextArea color="red" variant="soft" placeholder="Reply to commentā¦" />
</Flex>
Use the radius prop to assign a specific radius value.
<Flex direction="column" gap="3" maxWidth="250px">
<TextArea radius="none" placeholder="Search the docsā¦" />
<TextArea radius="large" placeholder="Search the docsā¦" />
<TextArea radius="full" placeholder="Search the docsā¦" />
</Flex>
Use the resize prop to enable resizing on one or both axis.
<Flex direction="column" gap="3" maxWidth="250px">
<TextArea resize="none" placeholder="Search the docsā¦" />
<TextArea resize="vertical" placeholder="Search the docsā¦" />
<TextArea resize="horizontal" placeholder="Search the docsā¦" />
<TextArea resize="both" placeholder="Search the docsā¦" />
</Flex>
PreviousTab Nav
NextText Field