Avatar
Terminal-inspired avatar with image support, monospace initials fallback, and group stacking with overflow.
Installation
dgadd is not public on npm yet. Until the first release, pack @diffgazer/add from the repository and install that tarball into this app, which is what puts dgadd on pnpm exec.
The hosted registry is not public yet because r.b4r7.dev does not resolve. Use this source checkout or a local registry preview until the endpoint returns 200.
Diffgazer packages are not yet published to npm. Until the first release, pack @diffgazer/ui and @diffgazer/keys from the repository and install those tarballs.
UI components require Tailwind CSS v4. Local copy mode imports src/styles/styles.css; package mode uses @diffgazer/ui CSS once packages are available.
Usage
Examples
Sizes
Group with Overflow
API Reference
Avatar
AvatarImage
AvatarFallback
AvatarGroup
AvatarIndicator
Accessibility
Notes
Image Fallback
When src fails to load, Avatar falls back to the fallback initials. If no fallback is provided, '?' is shown.
Terminal Style
Square shape with a border and monospace font for initials — following the @diffgazer/ui terminal-inspired aesthetic.
Spacing
AvatarGroup supports spacing='overlap' (default, stacked look) or spacing='gap' (spaced apart). Use 'gap' inside Select triggers or inline layouts where overlap looks cramped.
Composition
Avatar works standalone or inside AvatarGroup. Combine Avatar with public Select parts to build avatar pickers.
Source
Install via CLI: pnpm exec dgadd add ui/avatar. Keyboard hooks are included as standalone copies. For the full experience, use --integration keys.
Highlighted source loads after this disclosure opens. Browse the source repository.