Alert dialog preview
Confirm an action with clear cancel and confirm controls.
pro · Feedback · composite
When to use
- Use it when a page needs confirm an action with clear cancel and confirm controls.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose alert instead when inline notices with icons, actions and optional dismissal is the actual interface need, rather than alert dialog.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/alert-dialogImport components/ui/tidal.css, components/ui/alert-dialog.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/alert-dialog.css";
import{TidalAlertDialog}from"./components/ui/alert-dialog";
export default(p:Parameters<typeof TidalAlertDialog>[0])=><div className="tidal-scope"><TidalAlertDialog {...p}/></div>;API and props
TidalAlertDialog.cancelLabel (required)ReactNodeRequired cancel label value accepted by this exported component.
TidalAlertDialog.confirmLabel (required)ReactNodeRequired confirm label value accepted by this exported component.
TidalAlertDialog.description (required)ReactNodeRequired description value accepted by this exported component.
TidalAlertDialog.onCancel (required)(event: TidalAlertDialogCancelEvent, reason: TidalAlertDialogCancelReason) => voidCallback invoked when the cancel interaction is proposed.
TidalAlertDialog.onConfirm (required)(event: ReactMouseEvent<HTMLButtonElement>) => voidCallback invoked when the confirm interaction is proposed.
TidalAlertDialog.onOpenChange (required)(open: boolean) => voidCallback invoked when the open change interaction is proposed.
TidalAlertDialog.open (required)booleanRequired open value accepted by this exported component.
TidalAlertDialog.title (required)ReactNodeRequired title value accepted by this exported component.
TidalAlertDialog.trigger (required)ReactElement<unknown, string | JSXElementConstructor<any>>Required trigger value accepted by this exported component.
TidalAlertDialog.actionsLabelstring | undefinedOptional actions label value accepted by this exported component.
TidalAlertDialog.busyboolean | undefinedOptional busy value accepted by this exported component.
TidalAlertDialog.busyLabelReactNodeOptional busy label value accepted by this exported component.
TidalAlertDialog.cancelButtonPropsTidalAlertDialogButtonProps | undefinedOptional cancel button props value accepted by this exported component.
TidalAlertDialog.cancelButtonRefRef<HTMLButtonElement> | undefinedOptional cancel button ref value accepted by this exported component.
TidalAlertDialog.cancelDisabledboolean | undefinedOptional cancel disabled value accepted by this exported component.
TidalAlertDialog.confirmButtonPropsTidalAlertDialogButtonProps | undefinedOptional confirm button props value accepted by this exported component.
TidalAlertDialog.confirmButtonRefRef<HTMLButtonElement> | undefinedOptional confirm button ref value accepted by this exported component.
TidalAlertDialog.confirmDisabledboolean | undefinedOptional confirm disabled value accepted by this exported component.
TidalAlertDialog.contentPropsOmit<Omit<Dialog.DialogContentProps & RefAttributes<HTMLDivElement>, "ref">, "role" | "aria-describedby" | "aria-labelledby" | "children"> | undefinedOptional content props value accepted by this exported component.
TidalAlertDialog.detailReactNodeOptional detail value accepted by this exported component.
TidalAlertDialog.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalAlertDialog.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalAlertDialog.escapeCancelsboolean | undefinedOptional escape cancels value accepted by this exported component.
TidalAlertDialog.outsidePointerCancelsboolean | undefinedOptional outside pointer cancels value accepted by this exported component.
TidalAlertDialog.overlayPropsOmit<Omit<Dialog.DialogOverlayProps & RefAttributes<HTMLDivElement>, "ref">, "children"> | undefinedOptional overlay props value accepted by this exported component.
TidalAlertDialog.portalContainerHTMLElement | null | undefinedOptional portal container value accepted by this exported component.
TidalAlertDialog.theme"light" | "dark" | undefinedOptional theme value accepted by this exported component.
TidalAlertDialog.tone"default" | "danger" | undefinedOptional tone value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.