Avatar
Avatar is used to represent a user or group of users using an image. It can also convey additional information about the user like login status, busy, away etc. The avatar can also be used as a link to a profile page.
Design Hints
Accessiblity Hints
Simple Avatar
A set of default avatars which can be used. The first one is a default avatar, the second one is a placeholder avatar, the third one is an avatar with name. The second row has the same types of avatars but with links.
Avatar with State
The simple avatar but with extra state information. The states available out of the box are
- Available - green
- Busy - red
- Away - yellow
Avatar with State And Ring
These avatars are similar to the previous one, but an additional ring is added to the avatar.
Avatar Groups
The avatar group allows you to show multiple avatars stacked together in a group. Using every avatar in the avatar group as a link is not recommended since the clickable area is limited. The recommended approach is to show the list of people when the link/button ( the +22 link in the example below) on the avatar group is clicked from which further actions can be taken.
Accessibility Testing Status
Component | NVDA | Windows Narrator | WAVE | Axe | IBM Equal Access |
---|---|---|---|---|---|
Simple Avatar | Yes | Yes | Yes | Yes | Yes |
Avatar with State | Yes | Yes | Yes | Yes | Yes |
Avatar with State And Ring | Yes | Yes | Yes | Yes | Yes |
Avatar Groups | Yes | Yes | Yes | Yes | Yes |
Note that there are no defined accessibility guidelines for the avatar pattern described by WAI-ARIA APG, so ravixUI implements accessbility for avatars keeping in mind the patterns for the role=img
and the accessbility patterns for <a>
tag where appropriate.