unslopkit

Components / Badges and chips

Counts on icons

Unread counts pinned to the corner of an icon button, with a plain dot when the count does not matter.

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-badge-counter-dot">
<div class="row">
  <button class="ib" type="button" aria-label="Notifications, 3 unread"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z"/><path d="M10 20.5h4"/></svg><span class="n">3</span></button>
  <button class="ib" type="button" aria-label="Inbox, 12 unread"><svg width="20" height="20" 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="14" rx="1"/><path d="M3 7l9 6 9-6"/></svg><span class="n">12</span></button>
  <button class="ib" type="button" aria-label="Messages, new"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 13l3-8h12l3 8v6H3z"/><path d="M3 13h5l1.5 2.5h5L16 13h5"/></svg><span class="dot"></span></button>
</div>
</div>

More badges and chips

All 25
  • envproduction version2.4.1 regionus-west

    Key and value chips

  • Filter chips

  • MRMara Reyes DWDana Whitfield

    People chips

  • Approved Priority Void

    Square outline marks

  • New

    Winter catalog

    48 items

    Corner ribbon

  • Upload62% Storage88%

    Progress chips