Skip to content

VexImage

const VexImage: ForwardRefExoticComponent<VexImageProps & RefAttributes<HTMLImageElement>>

Defined in: packages/react/src/components/ui/VexImage.tsx:24

Framework-aware image component.

Renders the Image component from FrameworkComponentsContext if one is configured (e.g. Next.js NextImage), otherwise falls back to a native <img> tag. All props are forwarded.

props

Accepts src, alt, and any standard HTML img attributes

An image element rendered by the injected framework component or <img>

<VexImage src="/logo.png" alt="Site logo" width={120} height={40} />