input-with-text

PreviousNext
Docs
takiexample

Preview

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

export default function InputWithText() {
  return (
    <div className="grid w-full max-w-sm items-center gap-3">
      <Label htmlFor="email-2">Email</Label>
      <Input type="email" id="email-2" placeholder="Email" />
      <p className="text-muted-foreground text-sm">Enter your email address.</p>
    </div>
  )
}

Installation

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

Usage

import { InputWithText } from "@/components/input-with-text"
<InputWithText />