About
A text input wrapped in a hand-drawn sketch frame that supports leading/trailing addons and buttons, for forms like usernames, search boxes, or amount fields.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Input Group to your project and fits it to your theme.
Code
How Input Group is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
InputGroup,
InputGroupAddon,
InputGroupInput,
} from "@/components/ui/input-group";
export default function InputGroupDemo() {
return (
<div className="flex min-h-[320px] w-full items-center justify-center bg-background p-10 text-foreground">
<div className="w-full max-w-xs">
<InputGroup roughness={1.5}>
<InputGroupAddon>@</InputGroupAddon>
<InputGroupInput placeholder="username" />
</InputGroup>
</div>
</div>
);
}
















