kanchanasw

Sketch Dialog

Component

About

A composable modal dialog with a hand-drawn, sketchy rough.js border and animated draw-in, built on Radix UI for triggers, headers, titles, descriptions, and footers.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sketch Dialog to your project and fits it to your theme.

Code

How Sketch Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";

export default function DialogNoAnimationDemo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-10 text-foreground">
      <Dialog seed={42} animate={false} defaultOpen>
        <DialogTrigger asChild>
          <Button seed={42}>Open dialog</Button>
        </DialogTrigger>
        <DialogContent>
          <DialogHeader>
            <DialogTitle>Static dialog</DialogTitle>
            <DialogDescription>Animations disabled.</DialogDescription>
          </DialogHeader>
        </DialogContent>
      </Dialog>
    </div>
  );
}

Dependencies

More by kanchanasw

View all
  • Sketch Tabs

    Sketch Tabs

    52
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    40
  • Sketch Textarea

    Sketch Textarea

    21
  • Sketch Button

    Sketch Button

    20
  • Sketch Hover Card

    Sketch Hover Card

    15
  • Pagination

    Pagination

    5
  • Radial Menu

    Radial Menu

    1
  • Hand-Drawn Progress Bar

    Hand-Drawn Progress Bar

    1