Avatar
import { AXAvatarModule } from '@acorex/components/avatar'; Overview
Primary
Twotone
Rounded
Text
Usage
ax-avatarPreview
Code
Size
Preview
Code
Text Mode
Preview
Code
Icon Mode
Preview
Code
Image Mode
Preview
Code
Look
Preview
Code
Avatar Group
Preview
Code
Design Tokens
| --ax-comp-avatar-bg-color | var(--ax-sys-color-#{$name}-lightest-surface) | Background color of the avatar. Uses a theme color. |
| --ax-comp-avatar-border-color | var(--ax-sys-color-#{$name}-lightest-surface) | Border color of the avatar. Uses a theme color. |
| --ax-comp-avatar-fill-color | var(--ax-sys-color-on-#{$name}-lightest-surface) | Fill color for elements (e.g., icons) within the avatar. Uses a theme color. |
| --ax-comp-avatar-text-color | var(--ax-sys-color-on-#{$name}-lightest-surface) | Text color within the avatar. Uses a theme color. |
Props
| color | string | primary | Sets the color theme of the avatar. |
| look | AXStyleLookType | rounded | Determines the appearance of the avatar. |
| size | number | 48 | Sets the size of the avatar. |