Image

Image component with responsive image support

Required Props: id, src

Structure

All styling goes in props.className as a single Tailwind utility string. Non-class props (text, src, alt, etc.) stay on their own keys. root.animation for scroll effects.

Properties

PropertyTypeDescriptionExamples
src*requiredstring
Image URL or path when not using media library id (matches <img src>)
https://images.unsplash.com/photo-...
videoIdstring
Media library asset id; when set, image src/metadata resolve from ROOT pageMedia
-
typestring
cdn | url | svg | upload
Image source type. Use 'url' for direct image URLs (e.g. Unsplash), 'cdn' for media library references, 'svg' for inline SVG, 'upload' for uploaded files
Default: "cdn"
-
urlobject
Optional separate URL field (see also content)
-
altstring
Alt text for accessibility
Product screenshot
titlestring
Image title attribute
-
fetchPrioritystring
high | low | auto |
Fetch priority for loading (matches ImageProps)
Default: "low"
-
loadingstring
lazy | eager
Loading strategy
-
canDeleteboolean
-
-
canEditNameboolean
-
-
customobject
-
-
classNamestring
Tailwind utility classes string. Mobile-first: unprefixed = base, md: = 768px+, sm: = 640px+, lg: = 1024px+. Includes layout, spacing, surface design, and typography.
flex flex-col gap-space-sm py-space-lg px-container-x md:flex-rowbg-primary text-primary-content rounded-box py-3.5 px-6 font-semibold
urlTargetstring
-
-
rolestring
-
-
aria-labelstring
-
-
aria-hiddenstring
-
-
aria-describedbystring
-
-
aria-livestring
polite | assertive | off
-
-
backgroundobject
-
-
rootobject
-
-