structyl

Avatar

stable

An image element with a fallback for representing the user.

Basic usage

JDAB

Examples

Avatar group

Stack avatars with negative margin to form a compact group.

ALGHMHAT

Team stack with fallback

Show loaded images, initials fallbacks and delayed fallback states together.

Features

  • Automatic and manual control over when the image renders.
  • Fallback accepts an arbitrary node.
  • Delays fallback to avoid flicker.

Installation

bash
pnpm dlx structyl add avatar

API Reference

Avatar API reference

Full props, types, defaults, and all 4 parts.

View API
Avatar | structyl