Alert

Displays a callout for user attention.

Installation

npx nx g @spartan-ng/cli:ui alert

Usage

import {
  HlmAlertDescription
  HlmAlert
  HlmAlertIcon
  HlmAlertTitle
} from '@spartan-ng/helm/alert';
<div hlmAlert variant="default | destructive">
  <ng-icon hlm hlmAlertIcon name="lucideCircleCheck" />
  <h4 hlmAlertTitle>Success! Your changes have been saved</h4>
  <div hlmAlertDescription>This is an alert with icon, title and description.</div>
</div>

Helm API

HlmAlertDescription

Selector: [hlmAlertDesc],[hlmAlertDescription]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmAlertIcon

Selector: [hlmAlertIcon]

HlmAlertTitle

Selector: [hlmAlertTitle]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmAlert

Selector: [hlmAlert]

Inputs

PropTypeDefaultDescription
class ClassValue --
variant AlertVariants['variant'] default -

Examples

Destructive

Alert Dialog Accordion