Image

The Image component is a primitive element designed for displaying images.

Import

import { Image } from '@vortex-kit/vortex';
import type { ImageProps } from '@vortex-kit/vortex';

Display

<Image src='./image.webp' alt='Image' />

Allied components

Image

Prop
Type
Default
src
string
alt
string
width
union
height
union
borderRadius
union
objectFit
union
cover
fallback
union
onLoad
function
onError
function
className
union
imageSlot
function
attributes
object
imageAttributes
object
Image Primitive Props — Vortex Design System