Skip to content
Menu

Data display

Initials fallback avatar

Initials fallback avatar: A single avatar that shows a photo when given one, otherwise centers two letters of initials on a soft tinted shape.

Using Initials fallback avatar

Initials fallback avatar uses the inline preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
sizenumber40From 24 to 72; step 4
shapeselectcircleOptions: circle, rounded
accentcolor#9BE15DNo additional limit in the metadata.
labeltextFBUp to 3 characters
Which frameworks are available for Initials fallback avatar?

Initials fallback avatar is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Initials fallback avatar depend on?

The React metadata lists these npm dependencies beyond React: clsx.

What accessibility details are visible in Initials fallback avatar?

The React source for Initials fallback avatar includes: attributes and handlers (aria-hidden, aria-label); explicit roles (img). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Initials fallback avatar handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Initials fallback avatar's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components