Renders profile picture, typically to represent a user.
Minimal example with only the src
attribute:
<.avatar src="avatar.png" />
Render avatar as a circle:
<.avatar src="avatar.png" circle />
Use a placeholder image in case the avatar is not set:
<.avatar src={@user.avatar_url} placeholder_src="fallback.png" />
Render an text as the placeholder value:
<.avatar src={@user.avatar_url} placeholder_content="A" />