Avatar

An Avatar shows an image in a circle with a badge if data is provided. If you don't have an image, you can provide a small text. Badge supports linking as well.

Show details...

Syntax

{{< avatar
background-color="Any valid color in rgba, hex, hsla, hwba (note: every format allows setting alpha/opacity.)"
badge-background-color="Any valid color in rgba, hex, hsla, hwba (note: every format allows setting alpha/opacity.)"
badge-size="Any valid number with unit like 10px, 1em, 0.8rem, 100vh or 50%"
badge-text="Any text"
badge-text-color="Any valid color in rgba, hex, hsla, hwba (note: every format allows setting alpha/opacity.)"
badge-text-size="Any valid number with unit like 10px, 1em, 0.8rem, 100vh or 50%"
image="Any valid image link"
is-open-in-new="true|false"
link="Any valid http link"
margin="Top, right, bottom, left property in px,em,rem or %. Ex. 15px, 0, 15px, 0 would imply 15px top, 0px right, and so on."
size="Any valid number with unit like 10px, 1em, 0.8rem, 100vh or 50%"
text="Any text"
text-color="Any valid color in rgba, hex, hsla, hwba (note: every format allows setting alpha/opacity.)"
text-size="Any valid number with unit like 10px, 1em, 0.8rem, 100vh or 50%" >}}

Samples