Skip to main content

Image

Image is a media element that displays a picture with a fallback if loading fails, such as a product photo or profile cover.

Import

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

Other links

Image

Image props
PropTypeDefaultAttributes
src
union
No default value
alt
string
No default value
width
DimensionValue
No default value
height
DimensionValue
No default value
maxWidth
DimensionValue
No default value
aspectRatio
number
No default value
borderRadius
union
No default value
objectFit
union
cover
bordered
boolean
No default value
onLoad
callback
No default value
onError
callback
No default value
fallback
union
No default value
renderImageSlot
callback
No default value
imageAttributes
object
No default value
style
object
No default value
attributes
object
No default value

ImageSlotAttributes

ImageSlotAttributes props
PropTypeDefaultAttributes
source
union
No default value
alt
string
No default value