Skip to main content

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
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.

PropertyTypeAllowed valuesDefaultDescription
sizeMantineSizesm · md · lgmdSets 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.