Skip to main content

Portrait


The Portrait element displays a user or doctor profile image in the Doctor App. This component is used in account-related screens, such as the profile or login details pages. It does not accept input but may trigger user-driven actions like editing or expanding account details.

Properties

PropertyValueDescription
TypePortraitUI component type
GroupVisualUsed for non-interactive profile visuals
IdentifierN/ANo specific identifier assigned
PreviewShows abstract avatar or user image
ValueNot user-editable
MandatoryNot applicable
ErrorNot applicable
MinNot applicable
MaxNot applicable
Read-onlyAlways rendered as non-editable
ListNot used in list contexts
Text, IconVisual-only
ChildrenNo children allowed
EventMay support click for expand/edit (optional)
ShadeAppears with subtle frame/background

Usage Example

Appears in the Doctor Account profile screen:

<AccountHeader>
<Portrait imageSrc={user.profilePicture} alt="Doctor portrait" />
</AccountHeader>

SDK Integration

This element appears in:

Method: /account/doctor/details

Used when rendering authenticated doctor information. Pulls portrait data from the session.


Example UI Placement

LevelReferenceTypeValueDescription
1user-iconPortrait[Abstract image]Displays user's portrait