unslopkit

Components / Modals and sheets

Command palette

A search field over grouped results with shortcuts, the highlighted row ready for Enter.

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-command-palette">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-label="Command palette">
  <div class="in"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg><input type="text" value="inv" aria-label="Search commands"><kbd>Esc</kbd></div>
  <p class="grp">Invoices</p>
  <ul>
    <li class="on"><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="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span>New invoice</span><kbd>N</kbd></li>
    <li><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="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span>INV-0412 · Reyes Framing</span></li>
    <li><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="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span>INV-0411 · Whitfield Homes</span></li>
  </ul>
  <p class="grp">Actions</p>
  <ul><li><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"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6"/></svg><span>Invite to crew</span><kbd>I</kbd></li></ul>
</div></div>
</div>

More modals and sheets

All 25
  • Form in a modal

  • Share sheet

  • Steps inside a modal

  • Popover menu

  • Lightbox

  • Cookie choices