Usage
JDJSBJ
Avatar component displays user profile pictures or initials in a circular format.
Experiment with all the properties of the Avatar component in real time.
Name of the user (used for initials).
Size of the avatar.
Enable hover animation.
Provide an image URL using the src prop.
Avatar supports five sizes: tiny, small, medium, large, and xlarge.
Enable hover animation using the animate prop.
Use Avatar.Group to display multiple avatars in a stacked layout.
Limit the number of visible avatars using the max prop. Remaining avatars will be shown as a count.
Avatar groups also support different sizes.
Prop | Default | Type |
|---|---|---|
name | undefined | string |
src | undefined | string |
size | "medium" | "tiny" | "small" | "medium" | "large" | "xlarge" |
animate | false | boolean |
Prop | Default | Type |
|---|---|---|
users | undefined | { name: string; src?: string }[] |
max | 5 | number |
size | "medium" | "tiny" | "small" | "medium" | "large" | "xlarge" |