Skip to main content
ALEXY LINK

Badge 03

A compact notification counter with responsive numeric sizing, count limits, and accessible feedback.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Badge 03

Badge 03 is a badge component in the Badge Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 8, 2026.

  • badge
  • notification
  • badges
  • count
  • inbox

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: aria-label.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

3 files: Badge03.jsx, Badge03.types.ts, Badge03.tailwind.css

  • Configurable through 4 props: count, max, showZero, className.
  • Uses React hooks: useState.
  • ARIA in the markup: aria-label.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.
View all Badge Components (10)