Skip to main content
ALEXY LINK

Alert 07

A compact inline status alert for editor toolbars that moves from unsaved to saving to saved.

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 Alert 07

Alert 07 is an alert component in the Alert Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 14, 2026.

  • alert
  • compact

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: role status; aria-keyshortcuts.
  • HTML elements used: section, button, input, textarea, label.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px.

React + TypeScript + Tailwind CSS

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

  • Configurable through 7 props: status, changes, savedLabel, onSave, onDiscard, saveShortcut, className.
  • Uses React hooks: useEffect, useRef, useSyncExternalStore, useState.
  • ARIA in the markup: role status; aria-disabled, aria-keyshortcuts.
  • HTML elements used: button, input, textarea, label.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm.
View all Alert Components (10)