Modal 1 – Centered dialog modal
- from @shadcncraft
A centered modal with a fixed width and clear visual separation from the page using a dimmed backdrop. The layout is stacked and simple: a compact header with icon, title, description, and a close action, followed by a flexible content area. Actions sit at the bottom, aligned horizontally, with a clear primary and secondary button. Designed to focus attention, block background interaction, and work well for confirmations, forms, or short tasks.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcncraft/modal-1Registry dependencies3
- button
- dialog
- @shadcncraft/semantic-tokens
Packages0
No npm packages are installed with it.
