Prism Docs

Alert

A component for displaying important messages to users.

Basic Usage

<prism-alert 
  type="success" 
  title="Success" 
  description="Action completed successfully."
  [showIcon]="true">
</prism-alert>

Closeable

<prism-alert 
  type="info" 
  title="Closeable" 
  description="You can close this alert."
  [closeable]="true"
  (onClose)="handleClose()">
</prism-alert>

API

NameTypeDefaultDescription
type'success' | 'info' | 'warning' | 'error''info'Type of the alert.
titlestring'-'Title of the alert.
descriptionstring'-'Description body of the alert.
showIconbooleanfalseWhether to show an icon.
closeablebooleanfalseWhether the alert can be closed.
onCloseEventEmitter<void>-Callback when the alert is closed.