Avatars represent people by displaying their initials.
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 like var(--chakra-avatar-height-md)
.
Check the theme for specific line heights.
Inherits margin props.
Name | Default | Description |
---|---|---|
name | — | string | undefined User's full name |
size | "md" | "2xs" | "xs" | "sm" | "md" | "lg" The avatar size. `xs` and `2xs` are deprecated and equivalent to `sm` |