Avatar

JD
JS
BJ
AB
CD
EW
FM
GT
Attribute Type Documentation Default Value
Required id * :string

The unique identifier for the avatar.

Required name * :string

The name of the account to render the avatar for.

color :string

The color of the avatar.

"pink"
image_href :string

The URL of the image to render as the avatar.

image_alt :string

Alternative text for the avatar image. Pass an empty string where the person's name is already rendered beside the avatar, so assistive technology does not announce it twice. Leave unset for avatar-only controls, which still need an accessible name of their own.

image_decoding :string

The image decoding strategy to use when rendering an avatar image.

"async"
image_loading :string

The loading strategy to use when rendering an avatar image.

fallback :string

Determines the fallback for when an image is not available. Can be either initials or a placeholder image

"initials"
on_status_change :string

Event handler for when the status of the avatar changes.

size :string

The size of the avatar. Defaults to medium.

"medium"
rest :global