Input
A text input for forms and user data entry.
Installation
Add the input component with the shadcn CLI.
npx shadcn@latest add https://yami.ui.unsanity.ai/r/input.jsonUsage
import { Input } from "@/components/ui/input"
<Input placeholder="Email" className="w-64" />Examples
Disabled
Code
import { Input } from "@/components/ui/input"
<Input disabled placeholder="Disabled" className="w-64" />With label
Code
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
<div className="grid w-64 gap-1.5">
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" placeholder="you@example.com" />
</div>