p-textarea-5

PreviousNext

Textarea with label

Docs
cossblock

Preview

Loading preview…
registry/default/particles/p-textarea-5.tsx
import { useId } from "react";

import { Label } from "@/registry/default/ui/label";
import { Textarea } from "@/registry/default/ui/textarea";

export default function Particle() {
  const id = useId();
  return (
    <div className="flex flex-col items-start gap-2">
      <Label htmlFor={id}>Message</Label>
      <Textarea id={id} placeholder="Type your message here" />
    </div>
  );
}

Installation

npx shadcn@latest add @coss/p-textarea-5

Usage

import { PTextarea5 } from "@/components/p-textarea-5"
<PTextarea5 />