Skip to main content

Photo


The Photo element captures and displays user profile images or related visual identifiers in the Doctor App. This field supports required validation, read-only rendering, and inline error feedback. It also integrates with image picker logic for upload workflows.


Properties

PropertyValueDescription
TypePhotoUI component type
GroupFieldBelongs to the "Field" group in UI catalog
Identifier37Unique element ID
PreviewDisplays default placeholder or uploaded image
ValueYAccepts image file input
MandatoryYRequired for user submission
ErrorYSupports validation error states
Read-onlyYCan render in locked or view-only mode
Text, IconYShows label and optional icon
ChildrenYCan contain nested components
EventYTriggers on-change and validation handlers
ShadeYSupports shaded background styling
Min/MaxYCan enforce file size or resolution limits
ListNot a list item

Usage Example

<PhotoField
label="Upload Profile Image"
required
onChange={handleImageUpload}
readOnly={false}
/>

Notes

  • Image input can come from device gallery or camera.
  • This element often appears in user profile, patient record, and doctor registration forms.
  • On error, an inline message appears below the image field.
  • Can be configured with validation rules for file type and resolution.