Avatar Showcase

Use Avatar Showcase to present an ordered group of people with a moving avatar strip. It accepts a recent subset and a total count, so the visual can represent a larger community without loading every profile.

Preview

Reduce motion:Off
Tune:Off
Inspect
Showing 24 of 900 people.

Installation

Basic usage

TypeScript
community.tsx

Examples

Use lanes to adjust the density, and pass a totalCount when the displayed people are only a recent sample.

Usage

API

PropertyTypeDefaultDescription
itemsAvatarShowcaseItem[]requiredOrdered people to present. The first item is treated as the most recent.
lanes1 | 2 | 31Number of vertically staggered lanes used by the moving strip.
totalCountnumberitems.lengthTotal community size when `items` contains only a recent subset.
messagestringundefinedOptional message revealed with the final count. Omit it for a count-only ending.
maxItemsnumber80Maximum number of avatars rendered before deterministic sampling is applied.
durationnumberundefinedFixed playback duration in seconds. When omitted, duration is derived from the total count.
avatarSizenumber56Avatar diameter in pixels.
onComplete() => voidundefinedCalled after the strip finishes and the ending is revealed.

Accessibility

Provide names for people whenever they are available. Reduced-motion preferences show a static, readable avatar group.

Styling

Use className and the component options to fit the strip into a community, activity, or social-proof section.

Contact

Found a bug or need help using this component? Open an issue on GitHub.

License & Usage

Sona UI is available under the MIT license. You may use, modify, and distribute this component in personal and commercial projects.

Was this page helpful?

Your response helps us improve component docs.