Skip to content
Devix Open Source

The basics

Every type, a description, an action to undo — and a countdown that pauses the moment you hover.

Live preview
<div class="demo demo--wide">
  <div class="demo-row">
    <button class="demo-btn" data-toast="default">Message</button>
    <button class="demo-btn" data-toast="success">Success</button>
    <button class="demo-btn" data-toast="error">Error</button>
    <button class="demo-btn" data-toast="warning">Warning</button>
    <button class="demo-btn" data-toast="info">Info</button>
  </div>
  <div class="demo-row">
    <button class="demo-btn" id="undo">With an Undo action</button>
    <button class="demo-btn" id="sticky">Until dismissed</button>
    <button class="demo-btn" id="clear">Dismiss all</button>
  </div>
  <p class="demo-hint">Hover a toast to hold it; move away and the countdown carries on.</p>
</div>