Avatar
The Avatar component provides a reusable pattern for avatar in the interface.
Image
Name
Icon
API
| Parameter | Default | Description |
|---|---|---|
|
image
|
false | A url to a profile image or an ImageInterface. |
|
icon
|
[] | Attributes for @icon component (separate reference). |
|
name
|
Persons full name | |
|
size
|
md | sm,md,lg,full |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-avatar--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-avatar--color--secondary
|
var(--color--secondary) | color | - | Background color |
|
--c-avatar--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Shape |
|
--c-avatar--color--secondary-contrast
|
var(--color--secondary-contrast) | color | - | Icon & initials color |