About
A hand-drawn, sketch-styled set of toggle buttons for picking one or multiple options from a related group, like a billing period or text-formatting selector.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Toggle Group to your project and fits it to your theme.
Code
How Toggle Group is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
export default function ToggleGroupMultipleDemo() {
return (
<div
className="flex min-h-[220px] w-full items-center justify-center p-10"
style={{
background: "var(--doodle-ui-bg-color, #f7f6f2)",
color: "var(--doodle-ui-text-color, #1f1d1a)",
}}
>
<ToggleGroup type="multiple" defaultValue={["bold"]}>
<ToggleGroupItem value="bold">Bold</ToggleGroupItem>
<ToggleGroupItem value="italic">Italic</ToggleGroupItem>
<ToggleGroupItem value="underline">Underline</ToggleGroupItem>
</ToggleGroup>
</div>
);
}








