Installation
Dependencies
This component requires the following dependencies:button- shadcn/ui button componentdialog- shadcn/ui dialog componentinput- shadcn/ui input componentlabel- shadcn/ui label component
Usage
Features
- Dual actions - Two buttons side-by-side for different actions
- Responsive layout - Stacks vertically on mobile, horizontal on desktop
- Equal width buttons - Each button takes 50% width on larger screens
- Centered content - Icon and text centered for visual appeal
- Success indicator - Green checkmark icon in circular background
- Flexible gap - Different spacing for mobile and desktop layouts
Component Structure
The component includes:Dialogwrapper with state controlDialogTriggerto open the dialog- Centered success icon (Check) in green background
DialogHeaderwith centered title and descriptionDialogFooterwith responsive flex layout- Two
DialogClosewrapped buttons (Deactivate and Cancel) - Responsive classes:
flex-colon mobile,sm:flex-rowon desktop
The footer uses
flex flex-col sm:flex-row sm:gap-3 w-full gap-2 to create a responsive button layout that stacks vertically on mobile and arranges horizontally on larger screens.