# Textarea

Multi-line version of Input with the same sunken well.

Docs: https://cozy-ui.solo.engineer/docs/components/textarea/

Install: `npx shadcn@latest add @cozy/textarea`

### Usage

```tsx
import { Textarea } from "@/components/ui/textarea"

<Textarea placeholder="Write a note…" />
```

### Example

```tsx
import { Label } from "@/components/ui/label";
import { Textarea } from "@/components/ui/textarea";

export default function TextareaDemo() {
  return (
    <div className="grid w-full max-w-md gap-2">
      <Label htmlFor="note">Note for your neighbour</Label>
      <Textarea id="note" placeholder="Come over for green tea this evening!" />
    </div>
  );
}
```

### Source (components/ui/textarea.tsx)

```tsx
import * as React from "react";
import { cn } from "@/lib/utils";

function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
  return <textarea data-slot="textarea" className={cn("cz-input", className)} {...props} />;
}

export { Textarea };
```

npm: `import { Textarea } from "@0xtrou/cozy-ui"` (after `npm install @0xtrou/cozy-ui` and `import "@0xtrou/cozy-ui/styles.css"`).
