unslopkit

Components / Tooltips and popovers

Bordered popover with caret

A light popover with a hairline border, a caret that keeps the border, and one drop shadow shared by both. Fits a short key or legend.

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-carbon-popover">
<div class="pc show">
  <button type="button" class="trig" aria-describedby="ukc-tooltip-carbon-popover-key"><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"><rect x="3" y="5" width="18" height="16" rx="1"/><path d="M3 10h18M8 3v4M16 3v4"/></svg> Key</button>
  <div class="pop">
    <div class="content" role="tooltip" id="ukc-tooltip-carbon-popover-key">
      <p class="t">Calendar key</p>
      <ul>
        <li><i class="sw booked"></i>Booked job</li>
        <li><i class="sw hold"></i>Pencilled in</li>
        <li><i class="sw bill"></i>Ready to invoice</li>
        <li><i class="sw late"></i>Overdue</li>
      </ul>
    </div>
    <span class="caret"></span>
  </div>
</div>
</div>

More tooltips and popovers

All 26
  • Shows above Shows to the right Shows to the left Shows below

    Four placements

  • Hours logged189 hWeek 46
    1. Monday31 hours
    2. Tuesday38 hours
    3. Wednesday27 hours
    4. Thursday42 hours
    5. Friday35 hours
    6. Saturday12 hours
    7. Sunday4 hours

    Chart value tips

  • Crew

    • Mara Reyes · Site lead
    • Dana Whitfield · Electrician
    • Joel Okafor · Carpenter
    • Kim Tran · Apprentice
    • Ana SilvaTom BeckerLee Park

    Avatar name tips

  • Thursday 14 Nov

    Popover with header

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

    Toolbar with shortcuts

  • Copy
    Copied

    Copy with confirmation