input-with-label

PreviousNext
Docs
takiexample

Preview

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

export default function InputWithLabel() {
  return (
    <div className="grid w-full max-w-sm items-center gap-3">
      <Label htmlFor="email">Email</Label>
      <Input type="email" id="email" placeholder="Email" />
    </div>
  )
}

Installation

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

Usage

import { InputWithLabel } from "@/components/input-with-label"
<InputWithLabel />