| Prop | Type | Default | Attributes |
|---|---|---|---|
src | string | No default value | |
alt | string | No default value | |
width | union | No default value | |
height | union | No default value | |
maxWidth | union | No default value | |
aspectRatio | number | No default value | |
objectFit | union | cover | |
borderRadius | union | No default value | |
bordered | boolean | No default value | |
fallback | union | No default value | |
onLoad | function | No default value | |
onError | function | No default value | |
renderImageSlot | function | No default value | |
imageAttributes | object | No default value | |
className | union | No default value | |
attributes | object | No default value |
Image
The Image component is a primitive element designed for displaying images.
Import
import { Image } from '@vortexlabs/vortex';
import type { ImageProps } from '@vortexlabs/vortex';Display
<Image src={imgUrl} width="200px" height="200px" />Other links