unslopkit

Components / Modals and sheets

Centered dialog

A roomy dialog with a large heading, plain text, and buttons in a row on the left, closed from the corner.

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-uswds-modal">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-um">
  <button class="x" type="button" aria-label="Close"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button>
  <h3 id="ukc-um">Are you sure you want to leave?</h3>
  <p>You have answers that are not saved. If you leave now, you will need to start the application again.</p>
  <div class="row"><button class="btn pri" type="button">Stay on this page</button><button class="link" type="button">Leave anyway</button></div>
</div></div>
</div>

More modals and sheets

All 25
  • 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

  • Command palette

  • Form in a modal