Skip to main content
ALEXY LINK

Badge 07

A selectable filter chip with clear active hierarchy, accessible toggle semantics, and responsive 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 07

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

  • badge
  • filter
  • badges
  • chip
  • selection

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-pressed.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

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

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