Newer
Older
vmk-ui-kit / demo / partials / toasts.html
@Eugene Sukhodolskiy Eugene Sukhodolskiy 1 day ago 906 bytes Add overlay components: Modal, Drawer, Toast system
<section class="demo-section">
  <h2>Toasts</h2>

  <div class="demo-row">
    <button class="btn btn-primary" type="button" onclick="VMKUIKit.Toasts.createInfo('Info', 'This is an info toast.', { lifetime: 4000 }).then(t =u003e t.show())">
      Info toast
    </button>
    <button class="btn btn-success" type="button" onclick="VMKUIKit.Toasts.createSuccess('Success', 'Operation completed.', { lifetime: 4000 }).then(t =u003e t.show())">
      Success toast
    </button>
    <button class="btn btn-warning" type="button" onclick="VMKUIKit.Toasts.createWarning('Warning', 'Please review your settings.', { lifetime: 4000 }).then(t =u003e t.show())">
      Warning toast
    </button>
    <button class="btn btn-danger" type="button" onclick="VMKUIKit.Toasts.createError('Error', 'Something went wrong.', { lifetime: 4000 }).then(t =u003e t.show())">
      Error toast
    </button>
  </div>
</section>