Join our Discord Community
Alert Dialog/Custom Actions

React Alert Dialog - Split Actions Layout

An alert dialog with split button layout separating a tertiary action on the left from primary confirmation actions on the right

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Three actions walk into a dialog—how do you lay them out without confusion? This React alert dialog uses justify-between to split Save as Draft on the left from Cancel and Publish on the right. Built with shadcn/ui and Radix UI, the spatial separation groups related choices while offering an alternative path. Perfect for publish workflows, form submissions, or any flow where users need a middle-ground option between proceed and abandon.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-5.json
npx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-5.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-5.json
bunx shadcn@latest add https://www.shadcn.io/registry/alert-dialog-custom-actions-5.json

Questions you might have