Homecomponentsinformational
LocalImage
An image fetched from a local source.
Use LocalImage to show an image from a locally imported image.
This is similar to RemoteImage in
all ways, except it is specifically only for locally imported images:
import logoImage from './logo.svg'
.
Next/Image performs some optimizations for local images. Please refer to the docs: https://nextjs.org/docs/basic-features/image-optimization#local-images.
API
image
Required
StaticImport
cornerRadius
brightness
number
blur
none
medium
large
small
xlarge
saturate
number
height
SafeNumber
objectFit
ObjectFit
objectPosition
ObjectPosition<string | number>
width
SafeNumber
layout
fill
fixed
intrinsic
responsive
loading
lazy
eager
alt
string
placeholder
blur
empty
quality
SafeNumber
priority
true
false
unoptimized
true
false
data
DataAttributeMap
itemID
string
itemProp
string
itemRef
string
itemScope
true
false
itemType
string