Image

Utility component can be used to display an image and control its size and shape.

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 Utility Props — Vortex Design System