Input
Displays a form input field or a component that looks like an input field.
Installation
bash
npx canx-ui add inputUsage
tsx
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
export default function Demo() {
return (
<div className="grid w-full max-w-sm items-center gap-4">
<div className="grid w-full max-w-sm items-center gap-1.5">
<Label htmlFor="email">Email</Label>
<Input type="email" id="email" placeholder="Email" />
</div>
<div className="grid w-full max-w-sm items-center gap-1.5">
<Label htmlFor="password">Password</Label>
<Input type="password" id="password" placeholder="Password" />
</div>
</div>
);
}