textarea-with-label

PreviousNext
Docs
takiexample

Preview

Loading preview…
registry/new-york/examples/textarea-with-label.tsx
import { Label } from "@/registry/new-york/ui/label"
import { Textarea } from "@/registry/new-york/ui/textarea"

export default function TextareaWithLabel() {
  return (
    <div className="grid w-full gap-3">
      <Label htmlFor="message">Your message</Label>
      <Textarea placeholder="Type your message here." id="message" />
    </div>
  )
}

Installation

npx shadcn@latest add @taki/textarea-with-label

Usage

import { TextareaWithLabel } from "@/components/textarea-with-label"
<TextareaWithLabel />