TwitterGithub

Alert Dialog

A modal dialog that interrupts the user with important content and expects a response.

Installation

npx nx g @spartan-ng/nx:ui alertdialog

Usage

import {
  BrnAlertDialogCloseDirective,
  BrnAlertDialogComponent,
  BrnAlertDialogContentDirective,
  BrnAlertDialogDescriptionDirective,
  BrnAlertDialogOverlayComponent,
  BrnAlertDialogTitleDirective,
  BrnAlertDialogTriggerDirective,
} from '@spartan-ng/ui-alertdialog-brain';
import {
  HlmAlertDialogActionButtonDirective,
  HlmAlertDialogCancelButtonDirective,
  HlmAlertDialogContentDirective,
  HlmAlertDialogDescriptionDirective,
  HlmAlertDialogFooterComponent,
  HlmAlertDialogHeaderComponent,
  HlmAlertDialogOverlayDirective,
  HlmAlertDialogTitleDirective,
} from '@spartan-ng/ui-alertdialog-helm';
<brn-alert-dialog closeDelay='100'>
  <brn-alert-dialog-overlay hlm />
  <button id='edit-profile' variant='outline' brnAlertDialogTrigger hlmBtn>Delete Account</button>
  <div hlmAlertDialogContent *brnAlertDialogContent='let ctx'>
    <hlm-alert-dialog-header>
      <h3 brnAlertDialogTitle hlm>Are you absolutely sure?</h3>
      <p brnAlertDialogDescription hlm>
        This action cannot be undone. This will permanently delete your account and remove your data from our
        servers.
      </p>
    </hlm-alert-dialog-header>
    <hlm-alert-dialog-footer>
      <button hlmAlertDialogCancel (click)='ctx.close()'>Cancel</button>
      <button hlmAlertDialogAction (click)='ctx.close()'>Delete account</button>
    </hlm-alert-dialog-footer>
  </div>
</brn-alert-dialog>
Aspect Ratio Alert