On this page
Props
<Input />Installation
npm
pnpm
yarn
bun
npx shadcn@latest add @dotui/inputUsage
Use 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..." />Sizes
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" />Examples
Default
All sizes
Disabled
Textarea
API Reference
An input allows a user to input text.
| Prop | Type | Default | |
|---|---|---|---|
"lg" | "md" | "sm" | "md" | ||
string | — | ||
Last updated on 6/16/2026