Rate this page:
A component that represents a user, displaying details such as name and profile picture, subject to the user's privacy settings.
The User
component can also be used within a Text component,
appearing as a lozenge with the name of the user when used within this context.
1 2import ForgeUI, { User } from '@forge/ui';
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | The Atlassian account ID of the user. |
Display a user.
1 2<User accountId="5a1234bc8d12345e3f1g11hi" />
Note, you can access the current user's Atlassian account ID in the app product context.
Rate this page: