Avatar 01
A foundational identity avatar with image, initials fallback, a precise size scale and optional presence.
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 01
Avatar 01 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
- identity
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.
- HTML elements used: section, ul, img.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Avatar01.jsx, Avatar01.types.ts, Avatar01.tailwind.css
- Configurable through 7 props: name, src, size, shape, presence, decorative, className.
- Renders without React state or effects.
- ARIA in the markup: aria-label.
- HTML elements used: ul, img, svg.
- Includes a prefers-reduced-motion rule for its animation.