Skip to content

AtloriaAvatar

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/ui-core/src/components/avatar/Avatar.ts

An avatar component that displays images or initials

Extends: AtloriaElement

Methods

MethodSignatureReturns
renderrender()void

Properties

PropertyType
stylesany
srcany
altany
nameany
initialsany
sizeAvatarSize
shapeAvatarShape
status`'online'
ringany
clickableany
groupany

Where it refuses work

  • AtloriaAvatar stops the work with an early return when this.initials.
  • AtloriaAvatar stops the work with an early return when parts.length >= 2.
  • AtloriaAvatar stops the work with an early return when !this.name && !this.initials.

Was this page helpful?

Download as PDF