Textarea
A multi-line text field for longer free-form input such as comments and descriptions. For a single line, use TextInput.
Base
Mantine + override
Mantine
Import
{ Textarea } from '@mantine/core'
Source
src/themes/component-overrides/inputs.ts
src/themes/style-overrides/input.module.css
Usage
label
description
error
disabled
size
sm
md
lg
React
<Textarea placeholder="Skriv en kommentar" w={384} size="md" label="Kommentar" />
The field follows TextInput for border, states and label.
Props
Only what this design system changes. Everything else is Mantine's — read the full props table there.
| Property | Type | Allowed values | Default | Description |
|---|---|---|---|---|
size | MantineSize | sm · md · lg | md | Sets the minimum height: 2 lines for sm, 3 for md and 6 for lg. |
Accessibility
Give the field a label. See Accessibility for what applies
to every component.