#API
Avatar
props
Name | Description | Type | Default | Values | Required |
|---|---|---|---|---|---|
size | Control size. One of xs, sm, md, lg, xl. | String | md | xssmmdlgxl | |
color | Theme or CSS color used for the control accents. | String | primary | ||
tag | Root element tag. | String | div | ||
name | Display name used to derive initials when no image is loaded. | String | |||
alt | Alt text for the image when `image` is set. | String | |||
image | Image URL. Falls back to initials or the avatar icon if unloadable. | String | |||
outlined | Outline style with a transparent fill. | Boolean | false | ||
rounded | Fully rounded corners (circle). | Boolean | false |
slots
Name | Description |
|---|---|
avatarIcon | Fallback icon when no name or image is available. |