Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 579 Bytes

File metadata and controls

28 lines (18 loc) · 579 Bytes

PatternFly Elements Alert

<pf-alert> is a web component that provides a standard alert interface for displaying important messages to users.

Installation

Load <pf-alert> via CDN:

<script src="https://jspm.dev/@patternfly/elements/pf-alert/pf-alert"></script>

Or, if you are using NPM, install it

npm install @patternfly/elements

Then once installed, import it to your application:

import '@patternfly/elements/pf-alert/pf-alert.js';
<pf-alert variant="info" header="Info alert title"></pf-alert>