Common UI kit components
Confluence UI kit components
Jira UI kit components

Rate this page:

Avatar

In UI kit version 0.15.0 and later, the Avatar component has been removed and is replaced by the User component.

A visual representation of a user (subject to their privacy settings). A row of avatars is displayed in an AvatarStack.

Avatar picture and name of Atlassian user

Usage notes

You can access the current user's Atlassian account ID with the useProductContext UI hook.

Import statement

1
import ForgeUI, { Avatar } from '@forge/ui';

Props

NameTypeRequiredDescription
accountIdstringYesThe Atlassian account ID of the user.

Example

1
<Avatar accountId="5a1234bc8d12345e3f1g11hi" />

Rate this page: