Skip to main content

Variable: AvatarFallback

@arolariu/components


@arolariu/components / AvatarFallback

Variable: AvatarFallback

const AvatarFallback: ForwardRefExoticComponent<Omit<AvatarFallbackProps, "ref"> & RefAttributes<HTMLSpanElement>>

Defined in: components/ui/avatar.tsx:121

Renders fallback content when the avatar image is unavailable.

Remarks

  • Renders a <span> element by default
  • Built on Base UI Avatar
  • Supports the render prop for element composition
  • Styling via CSS Modules with --ac-* custom properties

Example

<AvatarFallback>AO</AvatarFallback>

See

Base UI Documentation

// was this page useful?