Skip to main content
ALEXY LINK

Button 09

A stateful save action with clear selected feedback, accessible toggle semantics, 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 Button 09

Button 09 is a button component in the Button Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 26, 2026.

  • button
  • save
  • buttons
  • favorite
  • toggle

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: Button09.jsx, Button09.types.ts, Button09.tailwind.css

  • Configurable through 6 props: label, savedLabel, 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 Button Components (10)