Avatar
A pure vanilla JS implementation of Zag JS Avatar
Anatomy
The Avatar component consists of the following data-part
root
fallback
image

Modifier
Each avatar can be styled with modifiers.
You can mix as many modifiers on the same avatar, however you can choose only one choice per modifer
For convenience the default variant name is omited, meaning there is no need to add the default name class
Variant
Set the variant of each avatar
Options: neutral(default), accent
Color
Set the color of each avatar
Options: base(default), brand, alert
Font Color
Set the font color of each avatar
Options: base(default), brand, alert
Size
Set the size of each avatar
Options: md(default), sm, lg, xl
RTL
RTL support for button with icon
Templates
Avatar components is available in the followng templates
-
Corex template
Default corex templates. It provides the global, semantic and components tokens
-
Modex template
Based on Corex default template, it adds dark and light mode option to the tokens
-
Themex template
Based on the Corex default template, it adds theming capabilities as well as light and dark mode options to the tokens.