Skip to main content
ALEXY LINK

Avatar 02

A presence avatar whose status notch changes shape and label for online, away, busy and offline.

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 Avatar 02

Avatar 02 is an avatar component in the Avatar Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 15, 2026.

  • avatar
  • presence

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 img; aria-label, aria-live.
  • HTML elements used: section, ul, input, label, img, svg.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

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

  • Configurable through 5 props: name, src, status, size, className.
  • Uses React hooks: useState.
  • ARIA in the markup: role img; aria-label, aria-live.
  • HTML elements used: ul, input, label, img, svg.
  • Includes a prefers-reduced-motion rule for its animation.
View all Avatar Components (10)