Image
Last updated: 2.0.0 (21/01/2024)
Usage
Override width & height
Override fit & position
Custom placeholder
Props
Extends GenericImageProps
and GenericProps
.
placeholder
ReactNode
Placeholder content for this image.
radius
ComponentSize
Defines the border radius size class of this image. Defaults to the theme default radius size class.
width
CSSProperties["width"]
Sets width
css property.
height
CSSProperties["height"]
Sets height
css property.
square
boolean
Shorthand for aspect-ratio = "1/1".
color
CSSProperties["color"]
Sets color
css property.
shadow
boolean
Specifies if a shadow will be shown.
GenericImageProps
src (required)
string | ArrayBuffer | undefined
Source URI of this image.
alt (required
string
Alt text for this image.
fit
CSSProperties["objectFit"]
Sets object-fit
css property.
position
CSSProperties["objectPosition"]
Sets object-position
css property.
Last updated
Was this helpful?