Add additional visual information about a user, account, or other data groupings.
Currently, the following options are supported. They should be used in the following order:
iconA q2-icon to display as the fallback.
initialsA set of up to four initials to display as capitalized text. Takes priority over name.
nameThe name associated with the avatar. The initials of the first and last words provided will display as capital letters.
We recommend always providing a name when you want the avatar to be presented to screen readers.
srcDisplays the image provided by the user.
This component uses other components in the Tecton library, including:
q2-iconOther components in the Tecton library use this component, including:
q2-cardInitial Release
The following CSS variables are available to override the default theme styles of the q2-avatarcomponent.
Many Tecton components consume other components to maintain visual and functional consistency. If you are looking for a CSS variable you think should exist but are not seeing it, it may be defined in one of the dependent components below. Either way, if you think it's something we should expose more conveniently, let us know!