SHADCN ALERT DIALOG
Unanswered
Rex posted this in #help-forum
RexOP
Hi everyone,
I used shadcn doe my next js app. I want to remove the "x" button (default close button) of alert dialog. How to do this?
I used shadcn doe my next js app. I want to remove the "x" button (default close button) of alert dialog. How to do this?
1 Reply
European sprat
That's a dialog, not an alert dialog. Alert dialogs don't have the button.
If you are still wanting to use a dialog, you can edit the DialogContent component and get rid of DialogPrimitive.Close component
If you are still wanting to use a dialog, you can edit the DialogContent component and get rid of DialogPrimitive.Close component