Mixins / foldkit-mixins-ui

AvatarPicture

interface · packages/mixins-ui/src/avatar.ts:40

interface AvatarPicture {
  readonly asset: ImageAsset
  readonly provider: Provider.Provider
  readonly width: number
}

A picture foldkit-media writes the candidates of: the avatar's facts, the provider of its variants, and how wide the avatar is drawn in CSS pixels, so a 24px avatar fetches a 48px variant, not the original.

In the guides

Members

AvatarPicture.asset

property · packages/mixins-ui/src/avatar.ts:41

readonly asset: ImageAsset

AvatarPicture.provider

property · packages/mixins-ui/src/avatar.ts:42

readonly provider: Provider.Provider

AvatarPicture.width

property · packages/mixins-ui/src/avatar.ts:43

readonly width: number