About
A single-line text input field with a hand-drawn, sketchy rough.js border, supporting a label, leading/trailing icons, size presets, and validation/error states.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hand-Drawn Input to your project and fits it to your theme.
Code
How Hand-Drawn Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Input from "@/components/ui/input";
export default function InputWithIconDemo() {
return (
<div style={{ width: 320 }}>
<Input
seed={42}
animate={false}
placeholder="Type here…"
label="Search"
startIcon={
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden>
<circle cx="7" cy="7" r="4" stroke="currentColor" fill="none" />
<path d="M11 11l3 3" stroke="currentColor" />
</svg>
}
/>
</div>
);
}















