Data
Avatar
A person, an app or a team as a picture or initials, alone or in a stack.
Data
A person, an app or a team as a picture or initials, alone or in a stack.
Change the props on the right. The avatar and its code follow.
import { Avatar } from 'omuk-ui/avatar';
<Avatar size="xl" userId="user_42">AR</Avatar>A person is round; an app and a team are square. Without a picture, a person shows their initials on a colour picked from their userId, so the same person has the same colour everywhere.
16, 24, 32, 40 and 48. The smallest holds one letter: it shows the first of the initials.
AvatarStack lays each avatar over the last, with a ring in the page colour between them. AvatarCount ends the stack with how many more there are.
Avatar, AvatarCount and AvatarStack each take every prop of a <span>.