The Avatar component displays a user's profile picture or initials in a circular or square format. It helps create a personalized and recognizable interface element, representing users visually across different parts of the application.
Pass an image url with src="you-url".
If no image is provided and no name is given, we display a generic placeholder.
If no image is provided we create a two-letter initial based on the name. We choose a random colour from secondaries theme colours for the background. For xsand sm sizes, we only display the first letter.
You can use xs, sm, md and lg sizes.