Skip to content

Textarea

import { Textarea } from 'yarcl';

A one-row textarea is exactly as tall as an input.

<Textarea rows={1} placeholder="Say hello" />
<Textarea rows={4} />

A one-row textarea is exactly as tall as an Input of the same size: the vertical padding is computed from the control height and the line height. It grows from there and can be resized vertically.

Accepts every native <textarea> attribute except color.

PropTypeDefaultDescription
colorColorconfigconfig.defaults.colorSemantic color, from the colors config.
radius'size' | Radiusconfigconfig.defaults.radiusBorder radius, from the radii config, or 'size' for the radius named like the control's size.
sizeSizeconfigconfig.defaults.sizeControl size, from the sizes config.