Avatar 04
A role and permission avatar that pairs identity with an access level plate and capability ladder.
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 04
Avatar 04 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
- permissions
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: roles group, img; aria-labelledby, aria-expanded, aria-controls, aria-label.
- HTML elements used: section, ul, button, img, svg.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Avatar04.jsx, Avatar04.types.ts, Avatar04.tailwind.css
- Configurable through 7 props: name, src, role, title, pending, defaultExpanded, className.
- Uses React hooks: useId, useState.
- ARIA in the markup: roles group, img, owner, admin, editor, viewer; aria-labelledby, aria-expanded, aria-controls, aria-label.
- HTML elements used: ul, button, img, svg.
- Includes a prefers-reduced-motion rule for its animation.