v1.3.0 28

Notification Badge

Small indicators for counts, status, or attention on elements.

Default

Simple notification dots on icon buttons.

html
<span class="vt-notification-badge">
  <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
      <path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
    </svg></button>
  <span class="vt-notification-dot"></span>
</span>
<span class="vt-notification-badge">
  <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Mail (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
      <path d="M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
    </svg></button>
  <span class="vt-notification-dot"></span>
</span>
<span class="vt-notification-badge">
  <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Messages (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
      <path d="M21.4961 12C21.4961 17.2467 17.2428 21.5 11.9961 21.5C10.368 21.5 8.83549 21.0904 7.49609 20.3687C5.62786 19.362 4.37071 20.2979 3.26202 20.4658C3.09383 20.4913 2.92634 20.4302 2.80606 20.31C2.6235 20.1274 2.58875 19.8451 2.6896 19.6074C3.12475 18.5818 3.5243 16.6382 2.9795 15C2.6659 14.057 2.49609 13.0483 2.49609 12C2.49609 6.75329 6.74939 2.5 11.9961 2.5C17.2428 2.5 21.4961 6.75329 21.4961 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
    </svg></button>
  <span class="vt-notification-dot"></span>
</span>

With Count

Badges showing numeric counts positioned on icon buttons.

html
<span class="vt-notification-badge">
  <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications, 3 unread"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
      <path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
    </svg></button>
  <span class="vt-count-badge" aria-hidden="true">3</span>
</span>
<span class="vt-notification-badge">
  <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Mail, 12 unread"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
      <path d="M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
    </svg></button>
  <span class="vt-count-badge" aria-hidden="true">12</span>
</span>
<span class="vt-notification-badge">
  <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Messages, more than 99 unread"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
      <path d="M21.4961 12C21.4961 17.2467 17.2428 21.5 11.9961 21.5C10.368 21.5 8.83549 21.0904 7.49609 20.3687C5.62786 19.362 4.37071 20.2979 3.26202 20.4658C3.09383 20.4913 2.92634 20.4302 2.80606 20.31C2.6235 20.1274 2.58875 19.8451 2.6896 19.6074C3.12475 18.5818 3.5243 16.6382 2.9795 15C2.6659 14.057 2.49609 13.0483 2.49609 12C2.49609 6.75329 6.74939 2.5 11.9961 2.5C17.2428 2.5 21.4961 6.75329 21.4961 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
    </svg></button>
  <span class="vt-count-badge" aria-hidden="true">99+</span>
</span>

Colors

html

Danger

Info

Success

Warning

<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-notification-dot"></span>
  </span>
  <p class="vt-caption">Danger</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-info">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Mail (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-notification-dot"></span>
  </span>
  <p class="vt-caption">Info</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-success">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Messages (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M21.4961 12C21.4961 17.2467 17.2428 21.5 11.9961 21.5C10.368 21.5 8.83549 21.0904 7.49609 20.3687C5.62786 19.362 4.37071 20.2979 3.26202 20.4658C3.09383 20.4913 2.92634 20.4302 2.80606 20.31C2.6235 20.1274 2.58875 19.8451 2.6896 19.6074C3.12475 18.5818 3.5243 16.6382 2.9795 15C2.6659 14.057 2.49609 13.0483 2.49609 12C2.49609 6.75329 6.74939 2.5 11.9961 2.5C17.2428 2.5 21.4961 6.75329 21.4961 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-notification-dot"></span>
  </span>
  <p class="vt-caption">Success</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-warning">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-notification-dot"></span>
  </span>
  <p class="vt-caption">Warning</p>
</div>

On Avatars

Status indicator dots on avatar circles.

html
Alice Johnson

Online

Bob Smith

Busy

Carol Davis

Away

J

Offline

<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-success">
    <div class="vt-avatar vt-avatar-md"><img src="https://i.pravatar.cc/80?img=1" alt="Alice Johnson"></div>
    <span class="vt-notification-dot" role="status" aria-label="Online"></span>
  </span>
  <p class="vt-caption">Online</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge">
    <div class="vt-avatar vt-avatar-md"><img src="https://i.pravatar.cc/80?img=2" alt="Bob Smith"></div>
    <span class="vt-notification-dot" role="status" aria-label="Busy"></span>
  </span>
  <p class="vt-caption">Busy</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-warning">
    <div class="vt-avatar vt-avatar-md"><img src="https://i.pravatar.cc/80?img=3" alt="Carol Davis"></div>
    <span class="vt-notification-dot" role="status" aria-label="Away"></span>
  </span>
  <p class="vt-caption">Away</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-neutral">
    <div class="vt-avatar vt-avatar-md">J</div>
    <span class="vt-notification-dot" role="status" aria-label="Offline"></span>
  </span>
  <p class="vt-caption">Offline</p>
</div>

On Text / Tab

Badge counts next to text labels.

html
Inbox 3
Messages 12
Notifications 99+

3 unread messages.

Nothing sent today.

5 drafts waiting.

<div class="vt-flex vt-flex-wrap vt-items-center vt-gap-4">
  <div class="vt-inline-flex vt-items-center vt-gap-2">
    <span class="vt-label-md">Inbox</span>
    <span class="vt-count-badge">3</span>
  </div>
  <div class="vt-inline-flex vt-items-center vt-gap-2">
    <span class="vt-label-md">Messages</span>
    <span class="vt-count-badge">12</span>
  </div>
  <div class="vt-inline-flex vt-items-center vt-gap-2">
    <span class="vt-label-md">Notifications</span>
    <span class="vt-count-badge">99+</span>
  </div>
</div>

<div data-vt-tab-group="notification-tabs">
  <div role="tablist" aria-label="Mailbox" class="vt-tabs-list-underline">
    <button role="tab" aria-selected="true" data-vt-tab="inbox" class="vt-tabs-trigger-underline vt-active" tabindex="0">
      Inbox <span class="vt-count-badge">3</span>
    </button>
    <button role="tab" aria-selected="false" data-vt-tab="sent" class="vt-tabs-trigger-underline" tabindex="-1">Sent</button>
    <button role="tab" aria-selected="false" data-vt-tab="drafts" class="vt-tabs-trigger-underline" tabindex="-1">
      Drafts <span class="vt-count-badge">5</span>
    </button>
  </div>
  <p role="tabpanel" data-vt-panel="inbox" class="vt-body-sm vt-py-4">3 unread messages.</p>
  <p role="tabpanel" data-vt-panel="sent" class="vt-body-sm vt-py-4 vt-hidden">Nothing sent today.</p>
  <p role="tabpanel" data-vt-panel="drafts" class="vt-body-sm vt-py-4 vt-hidden">5 drafts waiting.</p>
</div>

Animated

Notification dots with a ping animation to draw attention.

html

Static

Pinging

Pinging count

Eve Martin

Online ping

<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-notification-dot"></span>
  </span>
  <p class="vt-caption">Static</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-ping">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-notification-dot"></span>
  </span>
  <p class="vt-caption">Pinging</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-ping">
    <button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Mail, 7 unread"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
        <path d="M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg></button>
    <span class="vt-count-badge" aria-hidden="true">7</span>
  </span>
  <p class="vt-caption">Pinging count</p>
</div>
<div class="vt-flex vt-flex-col vt-items-center vt-gap-2">
  <span class="vt-notification-badge vt-notification-badge-success vt-notification-badge-ping">
    <div class="vt-avatar vt-avatar-md"><img src="https://i.pravatar.cc/80?img=5" alt="Eve Martin"></div>
    <span class="vt-notification-dot" role="status" aria-label="Online"></span>
  </span>
  <p class="vt-caption">Online ping</p>
</div>

Guidelines

Do Use a small red dot to flag unseen items needing attention.
Don't Don't put attention dots on every icon at once.

Anatomy

span.vt-notification-badge                 ← Wrapper (+ intent, + ping)
├── button.vt-btn.vt-btn-bordered.vt-btn-icon  ← Anchor (or div.vt-avatar)
└── span.vt-notification-dot               ← Indicator (or span.vt-count-badge)

API Reference

Class Type Description
vt-notification-badge Base Wrapper that pins the indicator to the corner of its anchor (an icon button or an avatar)
vt-notification-dot Part 12px dot; top-right corner of a button, bottom-right of an avatar (presence)
vt-count-badge Part Count pill (20px high, Caption), top-right corner; also works inline next to a label
vt-btnvt-btn-borderedvt-btn-icon Part Icon button anchor
vt-avatarvt-avatar-md Part Avatar anchor
vt-notification-badge-info Variant Info color (default is danger)
vt-notification-badge-success Variant Success color — "online" on an avatar
vt-notification-badge-warning Variant Warning color — "away" on an avatar
vt-notification-badge-neutral Variant Muted gray — "offline", or a count that needs no attention
vt-notification-badge-ping Modifier Pulsing halo around the dot or count

Accessibility

Feature Details
Screen reader Say it on the anchor: aria-label="Notifications, 5 unread" on the button; the badge itself can be aria-hidden
Dot only A dot has no text — the anchor label must carry its meaning ("new", "online")
Updates Dynamic count changes should use aria-live="polite" to announce updates
Motion The ping halo is decorative; keep it for one thing at a time