MS Paint Demo
nyxui/ms-paint-demoFreeExample
Example showing a MS Paint clone.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://nyxui.com/r/ms-paint-demo.jsonSource
1"use client";2import DrawingCanvas from "../ui/ms-paint";34export default function MSpaintDemo() {5 const handleSave = (canvas: HTMLCanvasElement) => {6 canvas.toBlob((blob) => {7 if (blob) {8 const fileName = `MyDrawing_${Date.now()}.png`;9 const url = URL.createObjectURL(blob);10 const link = document.createElement("a");11 link.href = url;12 link.download = fileName;13 document.body.appendChild(link);14 link.click();15 document.body.removeChild(link);16 URL.revokeObjectURL(url);17 }18 }, "image/png");19 };20 return (21 <div className="h-screen w-full max-w-4xl mx-auto overflow-hidden relative">22 <DrawingCanvas23 title="My Drawing App"24 onSave={handleSave}25 menuItems={["File", "Edit", "Tools", "Help"]}26 />27 </div>28 );29}
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 68 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 3D Layered Card Demo3d-layered-card-demo | shadcn/ui | Examples | Free | no deps | |
| Animated Code Block Demoanimated-code-block-demo | shadcn/ui | Examples | Free | no deps | |
| Animated Grainy Background Demoanimated-grainy-bg-demo | shadcn/ui | Examples | Free | no deps | |
| Animated Text Demoanimated-text-demo | shadcn/ui | Examples | Free | no deps | |
| Apple Glass Effect Demoapple-glass-effect-demo | shadcn/ui | Examples | Free | no deps | |
| Bubble Background Demobubble-background-demo | shadcn/ui | Examples | Free | no deps | |
| Custom Cursor Democustom-cursor-demo | shadcn/ui | Examples | Free | no deps | |
| Cyberpunk Card Democyberpunk-card-demo | shadcn/ui | Examples | Free | no deps |
