PatternFly Elements Toast
pfe-toast
is a self-contained alert that is hidden on page load and slides in/out of the view when programmatically opened/closed.
Read more about Toast in the PatternFly Elements Toast documentation
Installation
Load <pfe-toast>
via CDN:
<script src="https://unpkg.com/@patternfly/pfe-toast?module"></script>
Or, if you are using NPM, install it
npm install @patternfly/pfe-toast
Then once installed, import it to your application:
import '@patternfly/pfe-toast';
Usage
<pfe-toast>
<p>You've been successfully toasted!</p>
</pfe-toast>