Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

API REFERENCE · DATA DISPLAY

<dj-avatar>

Circular/rounded/square avatar from an image src or slotted initials/icon. Part: base.

Try it in the playground

@dojo-ng/avatar · v0.1.1

npm install @dojo-ng/avatar

import "@dojo-ng/avatar";

Properties

PropertyAttributeTypeDefault
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