Bonusway design system

Forms

Textarea

Multi-line text — a review body, a support message.

import Textarea from '@/components/ui/Textarea';

Source: src/components/ui/Textarea.tsx

Examples

Rows and error

A review needs at least 50 characters.

Props

<Textarea> props

PropTypeDefaultDescription
errorstring—

Shown below the field in red and switches the border to red, mirroring Input's error state.

Also accepts everything in TextareaHTMLAttributes<HTMLTextAreaElement> — so native attributes (id, onClick, aria-*, data-*) pass straight through.

Usage

Do

  • Set `rows` to the length you expect, so the box does not look like a single-line field.

Don’t

  • Don’t use it for one-line input; the resize handle invites the wrong thing.

Related:InputField

Šī lapa lieto sīkfailus

Mēs izmantojam sīkfailus, lai uzlabotu tavu pieredzi mūsu vietnē un pielāgotu saturu, ko mēs tev piedāvājam. Būtiski sīkfaili ir nepieciešami, lai mūsu pakalpojums darbotos pareizi. Ja esi priecīgs, ka mēs apkopojam informāciju, izmantojot mārketinga sīkdatnes, tad izvelies “Pieņemt visu”. Vienmēr vari mainīt minētos iestatījumus, apmeklējot sīkfailu iestatījumus.

Sīkfailu iestatījumi