<Input />npx shadcn@latest add @dotui/inputUse Input to allow users to enter text. Combine with InputGroup and InputGroupAddon to add icons, buttons, or labels alongside the input.
import { Input } from "@/components/ui/input";<Input placeholder="Enter text..." />Use the size prop to control the input height. Available sizes are sm, md (default), and lg.
<Input size="sm" />
<Input size="md" />
<Input size="lg" />An input allows a user to input text.
| Prop | Type | Default | |
|---|---|---|---|
"lg" | "md" | "sm" | "md" | ||
union | — | ||
string | — | ||
string | — | ||
DOMRenderFunction<"input", InputRenderProps> | — | ||
Last updated on 6/4/2026