oks-ui

Data Display

User avatar with group support, status indicator, and image-load fallback.

Playground

Props

12 props across 3 groups

What the avatar shows -- name/src/showFallback all affect which of image, initials, or icon actually renders.

Props

name

string

Default:

Used to derive fallback initials.

src

string

Default:

Image source URL.

icon

ReactNode

Default:

Custom fallback icon, used when name/initials aren't available.

fallback

ReactNode

Default:

Fully custom fallback content, overrides icon/initials.

showFallback

boolean

Default: false

Forces the fallback (initials/icon) even while an image is loading.