API REFERENCE · DATA DISPLAY
<dj-avatar>
Circular/rounded/square avatar from an image src or slotted initials/icon. Part: base.
npm install @dojo-ng/avatar
import "@dojo-ng/avatar";
Properties
| Property | Attribute | Type | Default |
|---|---|---|---|
type |
type reflected |
"circle""square""rounded" |
"circle" |
size |
size reflected |
"small""medium""large" |
"medium" |
src |
src |
string |
None |
alt |
alt |
string |
None |
secondary |
secondary reflected |
boolean |
false |
outline |
outline reflected |
boolean |
false |
Slots
Default slot
CSS parts
Style these with dj-avatar::part(name).
base