Confirm dialog
Asks once, clearly, before anything you can't undo.
- Component
- Radix
- Light and dark
- Keyboard friendly
- Updated last month
Paste this into your agent.
Add "Are you sure?" done properly, with a red version for deletes to <the page you want it on>. Install it with: npx shadcn add @ollie/confirm-dialog Pass title and description in as props. Handle onOpenChange and onConfirm yourself; don't fetch inside the component. Keep the ocean theme tokens.
Other takes
More components
- Empty StateWhat to show when there's nothing to show.
- BannerA full-width message at the top of the page.
- Status badgeA coloured label for a status, from your own list.
- Wizard dialogA form in steps, checked as you go.
- Form dialogA form in a pop-up, with save and cancel.
- Job trayA tray of background jobs and how far along they are.
- Job progressOne job's steps and progress, in detail.
- CommentsA comment thread with a box to reply.
- Offline bannerTells people when they've lost connection, and when it's back.