Skip to main content
ALEXY LINK

Alert 06

A product update notice with a feature preview, a new marker, a call to action and remind-later scheduling.

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 06

Alert 06 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
  • product update

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 region; aria-labelledby, aria-expanded, aria-controls, aria-live, aria-atomic.
  • HTML elements used: section, ul, button, svg.
  • Keyboard keys handled: Escape.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px.

React + TypeScript + Tailwind CSS

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

  • Configurable through 8 props: badge, title, description, ctaLabel, ctaHref, onSnooze, onDismiss, className.
  • Uses React hooks: useEffect, useId, useLayoutEffect, useRef, useState.
  • ARIA in the markup: role region; aria-labelledby, aria-expanded, aria-controls, aria-live, aria-atomic.
  • HTML elements used: ul, button, svg.
  • Keyboard keys handled: Escape.
  • Includes a prefers-reduced-motion rule for its animation.
View all Alert Components (10)