unslopkit

Components / Modals and sheets

Dialog with header and footer

Title and close in a header, a body, and right-aligned buttons in a footer, all split by rules.

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-primer-dialog">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-pd">
  <div class="hd"><h3 id="ukc-pd">Rename branch</h3><button type="button" aria-label="Close"><svg width="16" height="16" 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></div>
  <div class="body"><label for="ukc-pd-in">New name</label><input id="ukc-pd-in" type="text" value="phase-two-invoices"></div>
  <div class="ft"><button class="btn" type="button">Cancel</button><button class="btn pri" type="button">Rename</button></div>
</div></div>
</div>

More modals and sheets

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

  • Share sheet