Textarea
Multi-line text field for notes, descriptions and addresses. Passed through from shadcn until Pilar restyles it.
Usage
import { Textarea } from '@pilar-amoda/ui/textarea';With a label
Pair it with Label; it grows with its content.
import { Label } from '@pilar-amoda/ui/label';
import { Textarea } from '@pilar-amoda/ui/textarea';
export const TextareaBasic = () => (
<div className="flex max-w-sm flex-col gap-2">
<Label htmlFor="textarea-example">Catatan</Label>
<Textarea id="textarea-example" placeholder="Tulis catatan" data-testid="txtNote_Textarea" />
</div>
);Do and don't
Do: use it when the text can run over one line.
Don't: use it for a short value like a code or a number; use Input.