Displays a form input field.
import { Input } from "@/registry/ui/input"
export default function InputDemo() {Installation
pnpmnpmyarnbun
Usage
import { Input } from "@/components/ui/input"<Input type="text" placeholder="Enter your name" />Examples
Default
import { Input } from "@/registry/ui/input"
export default function InputDefault() {With Label
import { Input } from "@/registry/ui/input"
import { Label } from "@/registry/ui/label"
Disabled
import { Input } from "@/registry/ui/input"
export default function InputDisabled() {With Button
import { Button } from "@/registry/ui/button"
import { Input } from "@/registry/ui/input"
File Input
import { Input } from "@/registry/ui/input"
import { Label } from "@/registry/ui/label"
API Reference
Input
All standard HTML input attributes are supported.