Rate this page:
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.
You can access the current user's Atlassian account ID with the useProductContext UI hook.
1 2import ForgeUI, { Avatar } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | The Atlassian account ID of the user. |
1 2<Avatar accountId="5a1234bc8d12345e3f1g11hi" />
Rate this page: