<div class="ilui-example ilui-person">
<span class="ilui-avatar" aria-hidden="true">AC</span>
<div><strong>Avery Chen</strong><p>Project owner</p></div>
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Photo and fallback
Keep initials visible while a photo loads. The second profile shows the fallback for an unavailable photo.
AC
JR
<div class="ilui-example ilui-avatar-samples">
<div class="ilui-person"><span class="ilui-avatar" aria-hidden="true">AC<img class="ilui-avatar__photo" src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=144&h=144&q=80" alt="" decoding="async" data-ilui-avatar-photo /></span><div><strong>Avery Chen</strong><p>Project owner</p></div></div>
<div class="ilui-person"><span class="ilui-avatar" aria-hidden="true">JR<img class="ilui-avatar__photo" src="data:image/png," alt="" decoding="async" data-ilui-avatar-photo /></span><div><strong>Jordan Rivera</strong><p>Reviewer</p></div></div>
Presence indicator
Show online status alongside the person’s identity.
<div class="ilui-example ilui-person"><span class="ilui-avatar ilui-avatar--online" role="img" aria-label="Jordan Rivera, online">JR</span>
<div><strong>Jordan Rivera</strong><p>Online</p></div>
</div>
Avatar group
Show a compact stack and count for the remaining reviewers.
<div class="ilui-example ilui-avatar-group" role="group" aria-label="Reviewers">
<span class="ilui-avatar" role="img" aria-label="Avery Chen">AC</span><span class="ilui-avatar" role="img" aria-label="Jordan Rivera">JR</span><span class="ilui-avatar" role="img" aria-label="Sam Morgan">SM</span>
<span class="ilui-avatar" role="img" aria-label="Two more reviewers">+2</span>
Sizes
Choose a size that fits the surrounding row.
<div class="ilui-example ilui-actions"><span class="ilui-avatar ilui-avatar--small" role="img" aria-label="Small avatar">AC</span><span class="ilui-avatar" role="img" aria-label="Standard avatar">AC</span><span class="ilui-avatar ilui-avatar--large" role="img" aria-label="Large avatar">AC</span></div>
Usage
| Accessible names | Use a meaningful name for an avatar by itself. Hide initials from assistive technology when the same name is written beside it. |
|---|
| Presence | Expose presence in text or the accessible label. |
|---|
| Images | Provide initials while the photo loads or if it fails. When the surrounding row already names the person, leave the photo alt text empty. |
|---|