Skip to content

Generated Avatar

Free

Makes a face or a pattern from a text, such as an email or a user id. The same text always gives the same picture, in your theme colors.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Show the photo, and the seeded face when there is no photo or it fails.

member-avatar.tsx

GeneratedAvatarImage

PropTypeDefaultDescription
classNamestring—
seedRequiredstring—The text that picks the face: a user id or an email. Empty: nothing renders.
avatarStyleRequired—A DiceBear style definition (import glass from "@dicebear/styles/glass.json").
paletteGeneratedAvatarPalette | null—The hues per theme. Default: the chart tokens. null keeps the colors of the style.
optionsGeneratedAvatarOptions—DiceBear options (flip, scale, a <part>Variant); they win over the palette.
altstring""The name for screen readers. Empty (the default) when a visible name is next to the face.
delaynumber0Waits before the new face comes in, in ms, for a stagger over many faces.

GeneratedAvatar

<div>
PropTypeDefaultDescription
classNamestring—
insetboolean—
rounded"default""full"—
size"default""lg""sm""xl""xs"—
seedRequiredstring—The text that picks the face: a user id or an email. Empty: nothing renders.
avatarStyleRequired—A DiceBear style definition (import glass from "@dicebear/styles/glass.json").
paletteGeneratedAvatarPalette | null—The hues per theme. Default: the chart tokens. null keeps the colors of the style.
optionsGeneratedAvatarOptions—DiceBear options (flip, scale, a <part>Variant); they win over the palette.
delaynumber—Waits before the new face comes in, in ms, for a stagger over many faces.
namestring—The name for screen readers: on the face, or on the icon when seed is empty.
childrenReactNode—More parts on top, such as an AvatarBadge.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Pass a user id or an email as seed: the same seed always gives the same face.
  • Pick a CC0 style from @dicebear/styles, such as Lorelei, Glass, or Shapes.
  • Put a GeneratedAvatarImage in an AvatarFallback when a photo can fail.
  • For a real photo or initials only, use an Avatar.
  • For a row of faces with a count, compose this item in an Avatar Group.
Swap
popup · a new seed or style pops the new face in while the old one fades out

Built with

Installs with Generated Avatar

Components
Avatar
  1. AddedGenerated Avatar, with Avatar.
Open the release