Textarea

A multi-line text input for longer form content.

Installation

Import the component from the passport-ui package.

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

Usage

Basic example showing how to use the component.

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

Additional resources

Documentation and examples are available in Storybook.