Every avatar is a deterministic SVG generated from a . The same value always yields the same avatar. There are no stored images and no network request at render time.
Add the package to a ,,, or any other JavaScript project.
Use or with an optional name.
Choose a variant, colors, shape, and motion preferences to match your brand.
Install with your package manager of choice. React 18 or newer is the only peer dependency.
Installation
Import the component and give it a . Omit it to render the stable default avatar. The same name always renders the same shape or gradient, so a user id or email is a stable avatar with nothing to store.
scales the avatar. By default, it renders as a hard square. Pass or to clip it into a full circle.
Beyond the classic gradient mesh, the package groups its 21 variants into four visual families. Choose a concrete variant when you need a fixed look; pass a family when you want a deterministic choice within that family.
By default the palette is derived from the name via color-harmony rules. Pass to use your own palette instead, brand colors, a product theme, anything. The name still drives the layout (and rotates which color leads), so every avatar stays unique while staying on-brand. Hex in, optional. You must pass exactly 5 colors.
The component covers everyday usage. These helpers are for variant pickers, capability-aware controls, and other programmatic integrations. Each one is documented with its exact return value in the API reference.
Need the complete list of constants, TypeScript types, return values, and REST routes? Continue to the package and HTTP API reference. The package creates SVG or JSON only; PNG and WebP are available through the HTTP API.