About
Displays a form input field, input groups, number input spinners, etc.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Base Input to your project and fits it to your theme.
Code
How Base Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Button } from '@/components/ui/base-button';
import { Input, InputWrapper } from '@/components/ui/base-input';
import { Euro, TicketPercent, User, X } from 'lucide-react';
export default function InputDemo() {
return (
<div className="space-y-5 w-80">
<InputWrapper>
<Euro />
<Input type="email" placeholder="Start icon" />
</InputWrapper>
<InputWrapper>
<Input type="email" placeholder="End icon" />
<TicketPercent />
</InputWrapper>
<InputWrapper>
<Button size="sm" variant="dim" mode="icon" className="size-5 -ms-0.5">
<User />
</Button>
<Input type="email" placeholder="Start clickble icon" />
</InputWrapper>
<InputWrapper>
<Input type="email" placeholder="End clickble icon" />
<Button size="sm" variant="dim" mode="icon" className="size-5 -me-0.5">
<X />
</Button>
</InputWrapper>
</div>
);
}















