Badge 06
An accessible removable tag with clear delete affordance, keyboard support, and responsive interaction states.
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 06
Badge 06 is a badge component in the Badge Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 5, 2026.
- badge
- tag
- badges
- removable
- chip
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: Badge06.jsx, Badge06.types.ts, Badge06.tailwind.css
- Configurable through 3 props: label, onRemove, className.
- Uses React hooks: useState.
- ARIA in the markup: aria-label.
- HTML elements used: button, svg.