Textarea

A multi-line text input for longer form content.

Installation

Import the component from the passport-ui package.

components/example.tsx
1import { Textarea } from "passport-ui";

Usage

Basic example showing how to use the component.

components/example.tsx
1<div className="w-sm">
2 <Textarea placeholder="Type your message here." />
3</div>
4
5{/* With custom rows */}
6<Textarea
7 placeholder="Larger text area..."
8 rows={6}
9/>
10
11{/* Disabled state */}
12<Textarea
13 disabled
14 placeholder="This textarea is disabled"
15/>

Additional resources

Documentation and examples are available in Storybook.