GitHub

Alert Dialog

A modal dialog that interrupts the user's workflow to communicate an important message and acquire a response.

Docs

Installation

npx solidui-cli@latest add alert-dialog

Usage

import {
  AlertDialog,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogTitle,
  AlertDialogTrigger
} from "~/registry/ui/alert-dialog"
<AlertDialog>
  <AlertDialogTrigger>Open</AlertDialogTrigger>
  <AlertDialogContent>
    <AlertDialogTitle>Alert Dialog</AlertDialogTitle>
    <AlertDialogDescription>
      An Alert Dialog enables assistive technologies and browsers to distinguish alert dialogs from
      other dialogs so they have the option of giving alert dialogs special treatment, such as
      playing a system alert sound.
    </AlertDialogDescription>
  </AlertDialogContent>
</AlertDialog>