Skip to main content

Skeletons.Image

Image rendering primitives. Two variants exist for different image sources and quality levels.


Variants

VariantUse for
Skeletons.Image.SmartPhotos, covers, backgrounds — supports low/high resolution loading
Skeletons.Image.SvgSVG icons and vector graphics

Skeletons.Image.Smart

Renders an image with dual-resolution support — a low-quality version is shown first while the high-quality version loads. Suitable for photos, album covers, and background images.

Signature

Skeletons.Image.Smart(props, style?)

Props

PropTypeDescription
lowStringURL of the low-resolution / placeholder image
highStringURL of the high-resolution image
classNameStringCSS class(es) to apply
sys_pnStringNamed part — enables onPartReady and ensurePart

Examples

Album cover or thumbnail

Skeletons.Image.Smart({
className: `${fig}__cover`,
low: item.coverUrl,
high: item.coverUrl,
});

Named image for lifecycle hooks

Skeletons.Image.Smart({
sys_pn: "slider-content",
low: thumbnailUrl,
high: fullResUrl,
});

Background image

Skeletons.Image.Smart({
className: `${fig}__background`,
low: "/images/bg-low.jpg",
high: "/images/bg-high.jpg",
});

Skeletons.Image.Svg

Renders an SVG icon or vector graphic using the same builder as Skeletons.Button.Svg — but without interactive behavior.

Signature

Skeletons.Image.Svg(props, style?)

Props

PropTypeDescription
icoStringIcon identifier (mapped to chartId internally)
srcStringDirect SVG URL
classNameStringCSS class(es) to apply
sys_pnStringNamed part

Example

Skeletons.Image.Svg({
ico: "my-icon",
className: `${fig}__icon`,
});

Choosing the Right Variant

Displaying a photo, cover, or background? → Image.Smart (with low + high URLs)
Displaying an SVG icon (non-interactive)? → Image.Svg
Displaying a clickable icon button? → Button.Svg instead

Quick Reference

Image.SmartImage.Svg
Sourcelow + high URLsico or src
Dual resolution
Interactive
sys_pn support