unslopkit

Components / Modals and sheets

Type to confirm

For the destructive ones: say what will be lost and make people type the name before the red button wakes.

Delete "Kitchen reframe"?

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

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-confirm-delete">
<div class="bd"><div class="dlg" role="alertdialog" aria-modal="true" aria-labelledby="ukc-cd">
  <h3 id="ukc-cd">Delete "Kitchen reframe"?</h3>
  <p>This deletes 14 job sheets, 48 photos, and 3 draft invoices. Sent invoices stay with your clients.</p>
  <label for="ukc-cd-in">Type <code>kitchen reframe</code> to confirm</label>
  <input id="ukc-cd-in" type="text" value="kitchen ref">
  <div class="row"><button class="btn" type="button">Keep it</button><button class="btn danger" type="button" disabled>Delete job</button></div>
</div></div>
</div>

More modals and sheets

All 25
  • Phone bottom sheet

  • Side drawer

  • Command palette

  • Form in a modal

  • Share sheet

  • Steps inside a modal