Avatars & groups
Avatars & groups patterns built with StyloftCSS and native HTML.
Avatar
Initials, sizes and an availability indicator with an accessible name.
AVMCAM
View HTML / PlaygroundHTML source
<div class="sl-cluster sl-gap-4">
<span class="sl-person sl-person--sm" role="img" aria-label="Ashish Verma">AV</span
><span class="sl-avatar-status"
><span class="sl-person" role="img" aria-label="Maya Chen, available"
>MC</span
></span
><span class="sl-person sl-person--lg" role="img" aria-label="Alex Morgan">AM</span>
</div>HTML source · enable JavaScript for the playground8 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
AvatarGroup
Overlapping avatar presentation. Names and counts remain available to assistive technology.
AVMCAM+3
View HTML / PlaygroundHTML source
<div class="sl-avatar-group" aria-label="Example team">
<span class="sl-person" role="img" aria-label="Ashish Verma">AV</span
><span class="sl-person" role="img" aria-label="Maya Chen">MC</span
><span class="sl-person" role="img" aria-label="Alex Morgan">AM</span
><span class="sl-person" role="img" aria-label="Three more team members">+3</span>
</div>HTML source · enable JavaScript for the playground6 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
Classes beginning with sl- come from StyloftCSS. Examples with demo- classes also use our optional demo extension CSS ↓. Load it after the core to reproduce those details.