unslopkit

Components / Tooltips and popovers

Toolbar with shortcuts

Icon buttons that show their name and keyboard shortcut on hover or focus. Tips at either end line up with the toolbar edge.

Replaced two joists under the bathroom floor. Photos of the rot are in the Alder Lane folder, and the client has seen them.

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-tooltip-toolbar-keys">
<div class="ed">
  <div class="tb" role="toolbar" aria-label="Note formatting">
    <span class="tk first"><button type="button" aria-label="Bold" aria-pressed="true" aria-keyshortcuts="Control+B" aria-describedby="ukc-tooltip-toolbar-keys-bold"><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="M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-bold">Bold <kbd>Ctrl</kbd><kbd>B</kbd></span></span>
    <span class="tk"><button type="button" aria-label="Italic" aria-pressed="false" aria-keyshortcuts="Control+I" aria-describedby="ukc-tooltip-toolbar-keys-italic"><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="M10 5h8M6 19h8M14 5l-4 14"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-italic">Italic <kbd>Ctrl</kbd><kbd>I</kbd></span></span>
    <span class="sep" aria-hidden="true"></span>
    <span class="tk"><button type="button" aria-label="Bulleted list" aria-keyshortcuts="Control+Shift+8" aria-describedby="ukc-tooltip-toolbar-keys-list"><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="M9 7h11M9 12h11M9 17h11"/><circle cx="4.5" cy="7" r="1"/><circle cx="4.5" cy="12" r="1"/><circle cx="4.5" cy="17" r="1"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-list">List <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>8</kbd></span></span>
    <span class="tk show"><button type="button" aria-label="Add link" aria-keyshortcuts="Control+K" aria-describedby="ukc-tooltip-toolbar-keys-link"><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="M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1"/><path d="M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-link">Add link <kbd>Ctrl</kbd><kbd>K</kbd></span></span>
    <span class="sep" aria-hidden="true"></span>
    <span class="tk last"><button type="button" aria-label="Attach photo" aria-describedby="ukc-tooltip-toolbar-keys-photo"><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="M20 11.5l-8.2 8.2a5 5 0 0 1-7.1-7.1l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.3 8.3a1.7 1.7 0 0 1-2.4-2.4L15 7"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-photo">Attach photo</span></span>
  </div>
  <p class="body"><strong>Replaced two joists</strong> under the bathroom floor. Photos of the rot are in the <a href="#">Alder Lane folder</a>, and the client has seen them.</p>
</div>
</div>

More tooltips and popovers

All 26
  • Copy
    Copied

    Copy with confirmation

  • Field format hint

  • Mara Reyes2h ago

    @Dana WhitfieldDana WhitfieldElectrician · Crew B At Birch Street until 4 pm Usually replies within an hour 14 jobs with your crew can you check the panel before Friday's inspection?

    User hover card

  • Invoices

    Feature callout

  • Full name on overflow

  • Draft saved 2 min ago

    Before you can send Line items added Client email is missing No due date yet

    Why it is disabled