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
small
medium
large
xlarge
saturate
number
height
SafeNumber
objectFit
ObjectFit
objectPosition
ObjectPosition<string | number>
width
SafeNumber
layout
fill
intrinsic
fixed
responsive
loading
lazy
eager
alt
string
placeholder
blur
empty
quality
SafeNumber
priority
true
false
unoptimized
true
false
data
DataAttributeMap