The Аvatar allows you to set different styles based on its content.
The available type are:
- Image —By passing an
imgelement as child element of the Avatar.
- Text avatar—By passing an given string to be rendered as text (initials).
- Icon avatar—By passing
iconto the Avatar component.
All of the options can be rendered in a different shape by setting the
shape values are:
circle—Renders a circle shape avatar.
rounded—Renders an avatar with rounded borders.
square(Default)—Renders a square shape avatar.
The following example demonstrates the
shape options of the Avatar.
The Аvatar allows you to specify predefined theme colors.
themeColor values are:
primary(Default)—Applies coloring based on primary theme color.
secondary—Applies coloring based on secondary theme color.
tertiary— Applies coloring based on tertiary theme color.
inherit— Applies inherited coloring value.
info—Applies coloring based on info theme color.
success— Applies coloring based on success theme color.
warning— Applies coloring based on warning theme color.
error— Applies coloring based on error theme color.
dark— Applies coloring based on dark theme color.
light— Applies coloring based on light theme color.
inverse— Applies coloring based on inverted theme color.