Profile Picture
Overview
The LMProfilePicture
component is designed to display user profile pictures with customizable styling and behavior. It accepts properties such as fallbackTextStyle
, size
, and various styles for the profile picture itself. The component allows for a fallback option when the image fails to load, and it can trigger actions upon being tapped. This versatility makes it suitable for applications requiring user identification through profile images while maintaining a cohesive design across different interfaces.
Callbacks
onTap
: Callback to handle tap events trigerred by on clicking of the profile picture.
Customisation
Property | Type | Description | Required |
---|---|---|---|
fallbackText | LMTextProps | This represents the text to show initials if image URL is not present | ✔️ |
imageUrl | string | This represents the URL of the image | |
size | number | This represents the circular size of the profile picture | |
onTap | Function | This represents the functionality to execute on click on profile picture | |
fallbackTextBoxStyle | ViewStyle | This represents the initials view style which wraps the initials text | |
profilePictureStyle | ImageStyle | This represents the profile picture image style |