Avatars represent people by displaying their initials.
Avatars have three available sizes, with the default set to md
The avatar background and text colors will be automatically assigned, semi randomly based on the name.
If you want to vertically align the Avatar initials with text on the same line as the Avatar, the easiest way is to set the line height to match the Avatar's height. The avatar line heights are exported in theme variables.
Check the theme for specific line heights.
Inherits margin props.
Name | Default | Description |
---|---|---|
name | — | string | undefined User's full name |
size | "md" | "sm" | "md" | "lg" The avatar size. |