unslopkit

Components / Modals and sheets

Popover menu

A menu anchored to its button, with groups split by a rule and the destructive item last, in red.

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-popover-menu">
<div class="wrapx"><button class="trigger" type="button" aria-expanded="true"><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="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/></svg></button><div class="menu" role="menu">
  <button role="menuitem" type="button"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg> Duplicate <kbd>⌘D</kbd></button>
  <button role="menuitem" type="button"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 4h6v6M20 4l-9 9M18 14v6H4V6h6"/></svg> Open in new tab</button>
  <hr>
  <button role="menuitem" type="button"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h6l2 2h10v11H3z"/></svg> Move to…</button>
  <hr>
  <button role="menuitem" type="button" class="bad"><svg width="15" height="15" 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> Delete</button>
</div></div>
</div>

More modals and sheets

All 25
  • Lightbox

  • Cookie choices

  • Location and language picker

  • Status modal

  • 1:42left

    Still there?

    The patient portal signs you out after 15 quiet minutes, so nobody else at this screen can read your records. Your refill request for Dr. Okafor is saved as a draft.

    Signing out at 2:47 pm

    Session timeout

  • Microphone permission