Skip to content
ghostui

Preview

Image, generated avatar, initials, and fallback.

MCIllustration
DYGenerated
MCInitials
MCFallback

Installation

Install the local ghost-kit source bundle while the registry runs at localhost:3110. It contains this component and its source dependencies. Prepare the local registry first so token dependencies also resolve locally.

Install

Basic usage

Structure

Examples

Image

Use Image for a person or other identity photo. Keep Fallback in the same Root for a missing or failed image.

MC

Generated

Five DiceBear styles use the same seed. If the service is unavailable, each avatar shows its fallback.

GUgaze
GUdylan
GUline-face
GUsprouts
GUshadows

Initials

Use the identity API when a photo is not available. Initials are derived from name unless initials is provided.

MC

Failed image fallback

Keep a useful identity when an image request fails. The fallback is part of the same avatar composition.

MC

Labeled status

Wrap an avatar before adding a status indicator. Add a label when the status conveys information beyond decoration.

MCOnline

Stacked identities

Compose Avatar when a task needs a compact member list. The example keeps the group layout local and shows the remaining count when the list is capped.

MCSLRP+2

API reference

For inherited behavior and additional part properties, see the Base UI Avatar API.