Images

Responsive image grids with hover effects and layout options.

Images

No hover effect (default)

Place s-image elements inside s-images.

Sizing and fit

The source ratio does not need to match its display box. Choose contain, cover, fill, none, or scale-down; use position to preserve the important region when cropping. aspect-ratio reserves stable space before a lazy image loads.

Preview

Set preview to open the shared image viewer. preview-src-list supplies a custom gallery and the trigger remains keyboard accessible.

Hover

Pick a hover animation: zoom, blur, dark, scale, or curtain.

More Options

Fine-tune spacing and corners with alternating and margin props.

API

PROPS

Property
Type
Values
Description
default
Example
More
hover
String
noneblurzoomdarkscalecurtain
Hover animation style.
none
alternating
Boolean
truefalse
Alternate item offsets.
false
not-border-radius
Boolean
truefalse
Disable rounded corners.
false
not-margin
Boolean
truefalse
Remove item margins.
false

CHILD PROPS

Property
Type
Values
Description
default
Example
More
src
String
URL
Image source used by SImage.
—
alt
String
Text
Accessible alternative text for SImage.
—
fit
String
fill | contain | cover | none | scale-down
Control how the source image fits inside the assigned box.
cover
position
String
CSS object-position
Align the image inside its box, especially when cover crops it.
center
width
String | Number
CSS length | number
Set the SImage item width; numbers are interpreted as pixels.
—
height
String | Number
CSS length | number
Set an explicit SImage item height; numbers are interpreted as pixels.
—
aspect-ratio
String | Number
CSS aspect-ratio
Reserve the image box ratio when height is not specified.
1
loading
String
eager | lazy
Select native eager or lazy image loading.
eager
decoding
String
auto | sync | async
Forward the preferred native image decoding mode.
auto
preview-src-list
Array
string[]
Supply the image list opened by the shared preview viewer.
[]
initial-index
Number
number >= 0
Select the initial item in preview-src-list.
0
preview
Boolean
true | false
Enable mouse and keyboard access to the shared image viewer.
false

EVENTS

Event
Type
Description
default
Example
More
load
Event
Emitted after the source image loads.
—
—
error
Event
Emitted when the source image fails to load.
—
—
preview
—
Emitted when SImage opens the shared preview viewer.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
default
SImage
Add image items to SImages.
—
—
placeholder
Custom content
Replace the built-in loading skeleton for an SImage.
—
—
error
Custom content
Replace the built-in failed-image state for an SImage.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied