React

Avatar

A component for displaying a user's profile image.

Available since@seed-design/react@0.0.1, @seed-design/css@0.0.1

Installation

npx @seed-design/cli@latest add ui:avatar

Props

Avatar

Prop

Type

src?string | undefined
alt?string | undefined
fallback?React.ReactNode
onLoadingStatusChange?((status: ImageLoadingStatus) => void) | undefined

AvatarBadge

Prop

Type

AvatarStack

Prop

Type

Examples

Size

Badge & Badge Mask

Stack

Fallback Image

You can use the fallback prop to specify the element to show when the image fails to load. This is usually IdentityPlaceholder.

Table of contents