Rate this page:
This section describes a Forge preview feature. Preview features are deemed stable; however, they remain under active development and may be subject to shorter deprecation windows. Preview features are suitable for early adopters in production environments.
We release preview features so partners and developers can study, test, and integrate them prior to General Availability (GA). For more information, see Forge release phases: EAP, Preview, and GA.
To add the User
component to your app:
1 2import { User } from '@forge/react';
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.
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | The Atlassian account ID of the user. |
1 2<User accountId="5a1234bc8d12345e3f1g11hi" /> <User accountId="3a1264bc8d12346eky1g11ok" />
You can access the current user's Atlassian account ID in the app product context.
1 2<Text> Contributors: <User accountId="5a1234bc8d12345e3f1g11hi" /> <User accountId="3a1264bc8d12346eky1g11ok" /> </Text>
Rate this page: