9.2k

Alert Dialog

A dialog that requires user response to proceed.

API Reference

Installation

Usage

API Reference

AlertDialog

Root component. Alias for AlertDialog.Root from Base UI.

AlertDialogTrigger

Trigger button that opens the alert dialog. Alias for AlertDialog.Trigger from Base UI.

AlertDialogPopup

Popup container that displays the alert dialog content. Also exported as AlertDialogContent.

AlertDialogHeader

Container for the alert dialog title and description.

AlertDialogFooter

Footer section for action buttons.

Example:

AlertDialogTitle

Title component. Alias for AlertDialog.Title from Base UI.

AlertDialogDescription

Description component. Alias for AlertDialog.Description from Base UI.

AlertDialogClose

Close button component. Alias for AlertDialog.Close from Base UI.

AlertDialogPortal

Portal component for rendering outside the DOM hierarchy. Alias for AlertDialog.Portal from Base UI.

AlertDialogBackdrop

Backdrop/overlay component. Also exported as AlertDialogOverlay. Alias for AlertDialog.Backdrop from Base UI.

AlertDialogViewport

Viewport component for positioning. Alias for AlertDialog.Viewport from Base UI.

Examples

Close Confirmation

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).