unslopkit

Components / Modals and sheets

Old desktop error

An alert drawn like a system error from a beige computer: a striped title bar, a stop sign, a default button with a double ring, and details that fold open.

Printer 2

The Riso has run out of fluorescent pink. 212 of 500 zines are printed and the rest are waiting in the queue.

Details
drum 2    ink 0%
job       zine-spring-v4.pdf
sheets    212 / 500
code      -192
Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-modal-desktop-error">
<div class="bd"><div class="win" role="alertdialog" aria-modal="true" aria-labelledby="ukc-modal-desktop-error-t" aria-describedby="ukc-modal-desktop-error-d">
  <div class="bar"><button class="box" type="button" aria-label="Close"></button><h3 id="ukc-modal-desktop-error-t">Printer 2</h3></div>
  <div class="body">
    <span class="sign"><svg width="44" height="44" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 2h8l6 6v8l-6 6H8l-6-6V8z"/><path d="M12 7v6M12 16.5h.01"/></svg></span>
    <div class="msg">
      <p id="ukc-modal-desktop-error-d">The Riso has run out of <strong>fluorescent pink</strong>. 212 of 500 zines are printed and the rest are waiting in the queue.</p>
      <details><summary>Details</summary><pre>drum 2    ink 0%
job       zine-spring-v4.pdf
sheets    212 / 500
code      -192</pre></details>
    </div>
  </div>
  <div class="row"><button class="b" type="button">Cancel job</button><button class="b" type="button">Use blue</button><button class="b def" type="button">Pause and swap</button></div>
</div></div>
</div>

More modals and sheets

All 25
  • Modal with flush buttons

  • Centered dialog

  • Dialog with header and footer

  • Delete "Kitchen reframe"?

    This deletes 14 job sheets, 48 photos, and 3 draft invoices. Sent invoices stay with your clients.

    Type to confirm

  • Phone bottom sheet

  • Side drawer