Skip to main content

Avatar


The Avatar component is perfect for adding a slot to insert a profile picture within your application. Designed exclusively for this purpose, it offers a set of customizations that can help you specialize the looks.

Note: The profile picture will be displayed as an icon.

Avatar

Avatar Properties

Avatar PropertyDescription
DimensionSet the size of the image
URLLink to the image source

API Methods

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handler

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onClick

onClick - Sets the actions to be triggered when the component is clicked.