Input
shadcn/uiDisplays a form input field or a component that looks like an input field.
Installation
Props
<Input />
Name
Type
className
string
type
string (standard HTML input types)
variant
"raised" | "ghost" | "outline"
Search for a command to run...
Displays a form input field or a component that looks like an input field.
import { Input } from "@/registry/optics/input";<Input type="email" placeholder="Email" /><Input type="password" placeholder="Password" /><Input type="text" placeholder="Disabled" disabled />import { Input } from "@/registry/optics/input";<Input type="email" placeholder="Email" /><Input type="password" placeholder="Password" /><Input type="text" placeholder="Disabled" disabled />