Avatar 05
An editable profile avatar with change photo, progress, success feedback and remove to initials.
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 05
Avatar 05 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
- profile
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-describedby, aria-live.
- HTML elements used: section, button, input, label, img, svg.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Avatar05.jsx, Avatar05.types.ts, Avatar05.tailwind.css
- Configurable through 9 props: name, src, status, progress, message, maxSizeMB, onSelectFile, onRemove, className.
- Uses React hooks: useId, useRef, useState, useEffect.
- ARIA in the markup: aria-disabled, aria-describedby, aria-live.
- HTML elements used: button, input, label, img, svg.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm.