Installation
npx @gentleduck/cli add input
npx @gentleduck/cli add input
Usage
import { Input } from "@/components/ui/input"import { Input } from "@/components/ui/input"<Input /><Input />Examples
Default
File
Disabled
With Label
With Button
Form
API Reference
Input
type(string, optional): The HTML input type (e.g.,'text','password','email')....props(React.HTMLProps<HTMLInputElement>): Other native input props likeplaceholder,disabled,value,onChange, etc.
Behavior:
- Renders a fully styled HTML
<input>element with focus, disabled, and placeholder styles. - Supports utility class merging using the
cnhelper. - Designed for flexible use in forms or standalone input fields.