Dialog blocks for every framework.
150 dialog sections for React, Vue, Svelte and Solid, ready to paste into a page. Dialog sections: modals, sheets and confirmations with focus handling and honest actions. Try each one right here.
Every dialog block
150 blocks.
Achievement Unlock DialogGames and small ritualsA chess trainer's profile with its achievement dialog shown open over a drawn player card: a medal that fills in, the tier in words and dots, XP toward level 8, two achievements close to unlocking and a Copy brag line button.
Add Card DialogPayments and plansA transit wallet's payment methods page with its add-card dialog shown open: a card drawn in greys that fills in as you type, a number that groups itself and names its network, checks on the number, expiry and code, and an Add card button that keeps only the last four digits.
Add Comment DialogFeedback and reportsA design-review tool's wireframe with its comment dialog shown open: a 500-character field where typing @ opens an inline people list, up to three attached files, and the thread so far beside it.
Add Profile DialogAccount and securityA newsletter's writers page with its byline composer shown open: a name, what they write, a 120 character bio, a mark from six drawn glyphs or initials and a switch, beside a card that shows the byline as it will print.
Add to Cart DialogPayments and plansA stool shop's product page with its add-to-cart dialog shown open: two heights that redraw the stool and move the price, three finishes with a sentence each, a quantity that stops at the stock left, and a total that follows the choices.
Add to Collection DialogNotes and editingA recipe page with its save dialog shown open: a search over six collections, a checkbox row for each with its recipe count, a New collection field that refuses a duplicate name, and a line that counts the collections holding the recipe.
Address Autocomplete DialogPickers and searchA meal-kit delivery page with its address dialog shown open: typing filters eight addresses of an invented town into an inline list you can arrow through, a choice fills four editable fields, and Enter it manually offers the same four, empty.
Age-Aware Sign-Up DialogAccount and securityA recipe community page with its sign-up dialog shown open: a rail of promises, name, email, password and date of birth fields, the terms, and a button that changes with the age worked out from the date.
API Error DialogStatus and errorsA deploy platform's overview with its failed card and the error alert shown open: the 502 status, the code and request id, a retry ladder of three attempts, a real copy of the error report and the error body as a JSON tree.
API Key DialogAccount and securityA keys page with its create-key dialog shown open: a name, scopes and an expiry in the first step, then the secret shown once, masked behind an eye button, with a Copy button and a box that has to be ticked before Done.
App Rating DialogDrawers and popoversA water tracker's Today screen with its rating drawer shown open over a drawn phone: five stars with a word each, then a branch, where four or five stars offers the store and one to three asks what could be better, with topics and a note.
Apply Coupon DialogPayments and plansA cookware shop's basket with its promo-code dialog shown open: one field that judges five typed codes with five different answers, applied codes kept as removable chips, and a summary that is worked out again after every change.
Or describe it. With Pro, your AI agent picks the block you describe and installs it on your stack.
Get ProPricing
Every dialog block, one prompt away, with Pro
Your AI agent installs any of the 150 dialog blocks, and every component, example and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
Answers on the 150 dialog blocks: what they are, how to customize and install them, the license and your AI agent.
150 dialog sections, each a whole situation rather than a bare modal: a destructive confirmation, an error with a retry, a session timeout, an edit form, a picker, a command palette, a side sheet or a bottom drawer. The gallery sorts them into 18 groups, from Destructive confirms to Drawers and popovers.
For deleting something use Confirm Delete Dialog, which asks for the name to be typed, and for leaving a draft Unsaved Changes Dialog. For a failed request use API Error Dialog, for an idle timer Session Timeout Dialog, and for a form Edit Profile Dialog. For a search over actions use Command Palette Dialog, and for a panel that stays beside the page a side sheet such as Assign Task Dialog.
Use an alert dialog when the user must answer before anything else, as in the Destructive confirms group: it has no outside-click close and the safer button takes first focus. Use a dialog for a form or a picker, a sheet or drawer for a longer task beside the page, and a popover when the page should stay usable around it. The Destructive confirms, Side sheets and Drawers and popovers groups show each kind.
Each file is one page-in-miniature: a drawn page behind the dialog, the dialog itself, and the state that links them, with typed sample data at the top. A comment at the head of the file lists what the dialog does and what nothing does: no request is sent and nothing is stored outside the page.
In a block the dialog is open state you control: a shown value of closed, open or in-place, and the dialog's open prop is true only when it reads open. Replace that with your own boolean in a useState, or lift it to a parent, and pass it to the Dialog or AlertDialog's open and onOpenChange. The trigger button keeps opening it, and focus returns to that button on close.
The blocks draw the dialog open in place on load, as a non-modal copy over a drawing of the page, so a preview or poster shows it without a click. It is for display only. In your app keep the real Dialog or AlertDialog and delete the in-place copy: the in-place state, the scrim with its dialog element and the Escape effect, as the comment at the top of the file says.
The form blocks keep their fields in component state and check them in a submit handler, such as the save function in Edit Profile Dialog. Put your request in that handler after the checks pass, close the dialog only when it succeeds, and show a failure in the status line the block already keeps. Keep the form element, so Enter submits.
In Confirm Delete Dialog the Delete button stays off until the typed text equals the project name, and the confirm function then marks the project gone and says so in a polite line. Call your delete endpoint in confirm, and only set the gone state after it answers. Keep Cancel as the first focus and the dialog free of outside-click close.
Session Timeout Dialog counts down from a minute with the catalog Timer and speaks only at 30 and 10 seconds, so a screen reader is not read every second. Tie it to your real session expiry, reset it on activity, and call your sign-out at zero. The block only veils the page, since nothing signs anyone out.
Command Palette Dialog opens on Command or Control and K while focus is in the block. To make it global, attach the key listener to the document in your layout and toggle the same open state, and replace the typed list of pages, people and actions with your own data, or with results from a search request, in the same groups.
This page lists 150 of the category's 150 dialog blocks for React on Base UI. The category comes in React (Base UI, React Aria, Ark UI and Radix UI), Vue, Svelte and Solid; the framework and UI library pickers at the top of any block's page switch between them.
The dialog blocks here are written on Base UI primitives; the layout, the copy and the theme tokens are the same on every base, and the install path follows it (/r/dialog-achievement-unlock.json). The other bases are one picker away from /dialog-block.
Each block is TypeScript and Tailwind CSS v4, styled with your theme's tokens, and imports our components (installed with it) on Base UI. Icons come from lucide-react.
Open a block, copy its command and run it: `npx shadcn@latest add` with the block's registry URL, such as /r/dialog-achievement-unlock.json for Achievement Unlock Dialog. The code is copied into your project and it's yours to edit.
The block's file and the components it imports: Achievement Unlock Dialog brings Button, Copy Button, Dialog, Guides, Progress and Shine Button, installed before it. Nothing else changes in your project.
Use the filters above the grid: 18 kinds of dialog block, led by payments and plans (17), account and security (14), drawers and popovers (12) and time and scheduling (11), and sort by popular or name. A good first look: Achievement Unlock Dialog, Add Card Dialog and Add Comment Dialog. Each card opens the block's live page.
Every block draws the same page column and side rails with a top rule only (the Guides component), so a dialog block lines up with the one above and below it. Stack one per section and the rails read as a single drawing; pick across the alerts, forms and tools kinds.
Open its page and use the full-screen viewer (/view/dialog/achievement-unlock) or the device-width previews. Every preview is free for everyone; only the code needs Pro.
Each dialog block uses semantic HTML: one heading level, real lists and labelled controls. Interactive parts sit on Base UI, a headless library that follows the WAI-ARIA patterns, and the layouts use logical properties so they hold in right-to-left languages.
Yes. They use semantic tokens only (bg-card, text-muted-foreground), never palette colors, so they follow your preset, radius and dark mode. The primary color marks one action per block and is never a background.
No animation library: the dialog blocks' motion is CSS (transitions, entrance animations and SVG), and it stands still under prefers-reduced-motion.
The previews are free for everyone. The code of all 150 dialog blocks is Pro, as is every block: Pro unlocks the code, the install command and the MCP.
Only with a Team or Organization license: client work, SaaS products and anything your users pay for. The Individual license is for personal, non-commercial projects. See the license page for the full terms.
You keep using what you installed in your existing projects, but get no new downloads or updates, and the MCP stops answering. A Lifetime license includes all future updates.
No. You can use them in your own End Products, but not redistribute the code or designs on their own, or in a UI library, kit, template or website builder.
With Pro, yes: the MCP server (22 tools, one personal URL from /dashboard/mcp) lets your agent search_blocks for a dialog block, read it with get_block and install it on your React on Base UI stack.
Pass `category: "dialog"` to search_blocks to search only the 150 dialog blocks, or to list_blocks for the 18 groups with their blocks. get_block then returns one with its install command.
plan_page plans a page as a stack of blocks for a brief. Pass `sections` with category ids, such as ["hero", "dialog", "footer"], to force the order; each section gets a pick and two alternatives, and get_block installs the stack.
4.9 out of 5 from 150+ developers
Every dialog block. One prompt away.
150 dialog blocks with Pro, the previews free to try. With Pro, your AI agent installs them from a prompt.
Get Pro