Skip to main content

Variable: AvatarImage

@arolariu/components


@arolariu/components / AvatarImage

Variable: AvatarImage

const AvatarImage: ForwardRefExoticComponent<Omit<AvatarImageProps, "ref"> & RefAttributes<HTMLImageElement>>

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

Renders the primary avatar image inside the avatar root.

Remarks

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

Example

<AvatarImage src="/profile.png" alt="Profile" />

See

Base UI Documentation

// was this page useful?