Rate this page:
A component that represents the avatar (name and profile picture) of a user, subject to their privacy settings.
1
import ForgeUI, { Avatar } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | The Atlassian account ID of the user. |
Display a user.
1
<Avatar accountId="5a1234bc8d12345e3f1g11hi" />
Note, you can access the current user's Atlassian account ID with the useProductContext UI hook.
Rate this page: