About
A clickable button whose border and fill look hand-drawn with a wobbly rough.js sketch outline, supporting primary/secondary/outline/ghost styles, sizes, icons and a loading spinner.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sketch Button to your project and fits it to your theme.
Code
How Sketch Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Button from "@/components/ui/sketch-button";
function PlusIcon() {
return (
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true">
<path
d="M2 8h12M8 2v12"
stroke="currentColor"
strokeWidth="1.5"
fill="none"
/>
</svg>
);
}
export default function SketchButtonIconDemo() {
return (
<div className="flex w-full flex-wrap items-center justify-center gap-4 p-10">
<Button
seed={42}
animate={false}
startIcon={<PlusIcon />}
endIcon={<PlusIcon />}
>
Continue
</Button>
<Button
seed={42}
animate={false}
startIcon={<PlusIcon />}
aria-label="Add"
/>
</div>
);
}
















