Edit profile
The classic: a form in a dialog. Washi tape across the top corners, the doodled x, and a sheet that drops onto the dimmed page.
A modal window that is a sheet of paper dropped on the desk: it lands with a small tilt that settles, the page behind goes dim under a lamp, and the close button is a doodled x. Tape it, pin it, tear its edge; on a phone it becomes a sheet at the bottom of the screen.
npx shadcn@latest add @wobko/dialogFirst time here? Add the registry to components.json first. How to install
The classic: a form in a dialog. Washi tape across the top corners, the doodled x, and a sheet that drops onto the dimmed page.
The sheet is a Paper: any stock, any edge, held down by tape, a clip or a pin. A torn edge is drawn once, when the dialog opens.
The sheet never scrolls (its shadow and tape would be clipped): put tall content in DialogBody, and the header and footer stay put. Very tall dialogs scroll under the lamp.
A real flow: a controlled dialog around a form. Submitting closes it and the page answers; the field is cleared for next time. Focus returns to the trigger.
shadcn's `dialog-close-button`, written the same way: a read-only field, a footer aligned to the start and a Close button inside DialogClose. The corner x is still there; this one is the labeled way out.
The sheet itself: a Paper that is also the Radix dialog (role=dialog, focus trap, scroll lock, Escape, focus return). It takes every Radix Content prop and these Paper props.
| Prop | Type | Default | Description |
|---|---|---|---|
| showCloseButton | boolean | true | The doodled x in the top corner. |
| stock | StockName | "paper" | What the sheet is made of: paper, card, slip, index-card, graph, kraft, sticky-* ... |
| edge | EdgeSpec | "cut" | Cut (pure CSS, no svg), torn, deckle, crimp, zig, perf, scallop, or one per side. |
| tilt | boolean | number | true | The sheet turns by a small seeded angle; the text never does. Phones lay it flat. |
| tape | "corner" | "top" | "both" | false | false | Tape strips across the top corners or edge. |
| tapeKind | TapeKind | "masking" | masking, washi-dots, washi-stripes, washi-zigzag, washi-gingham, kraft, clear. |
| fastener | "clip" | "pin" | "staple" | "binder-clip" | false | false | Hold the sheet with a drawn prop. |
| rules | RuleName | "none" | Printed rules (ruled, graph, dots ...). Off by default: arbitrary content does not sit on ruled lines. |
| shadow | SheetShadowKind | 'none' | - | Which umber shadow the sheet casts. Default: its stock's. |
| seed | string | number | - | Pins the hand: the same seed cuts, tilts and draws the same way. |
Buttons, stacked on phones and right-aligned from `sm`.
| Prop | Type | Default | Description |
|---|---|---|---|
| showCloseButton | boolean | false | Adds an outline Close button after the children. |
The files the CLI copies into your project.
Loading the source