Textarea
Room to say more: a review, a note to the Zostel, the story of the trip.
Preview
Default
With a label
Disabled
Usage
tsx
import { Textarea, Label } from "zostel-ui";
<Label htmlFor="review">Your review</Label>
<Textarea id="review" placeholder="Tell the next traveller what to expect." />Props
| Prop | Type | Default | Description |
|---|---|---|---|
rows | number | — | Visible lines. |
placeholder | string | — | A hint. |
disabled | boolean | false | Greys it out. |
… | TextareaHTMLAttributes | — | Every other <textarea> attribute. |
className | string | — | More classes, merged with the component’s own (tailwind-merge). |
rowsType:
numberDefault: —
Visible lines.
placeholderType:
stringDefault: —
A hint.
disabledType:
booleanDefault:
falseGreys it out.
…Type:
TextareaHTMLAttributesDefault: —
Every other <textarea> attribute.
classNameType:
stringDefault: —
More classes, merged with the component’s own (tailwind-merge).