// Generated by scripts/generate-showcase.mjs. Do not edit directly. page ImageDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_src = ctx.url.searchParams.get("pg_src") ?? "" state playground_alt = ctx.url.searchParams.get("pg_alt") ?? "" state playground_width = ctx.url.searchParams.get("pg_width") ?? "" state playground_height = ctx.url.searchParams.get("pg_height") ?? "" state playground_loading = ctx.url.searchParams.get("pg_loading") ?? "lazy" state playground_rounded = ctx.url.searchParams.get("pg_rounded") ?? "false" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Image" description = "Theme-aware, responsive image component." } view {
Layout component

Image

Theme-aware, responsive image component.

9 props1 slots2 eventsTheme readyResponsive
Interactive playground

Configure Image

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<Image />
Component props9 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
Component usage.wrn
<Image />
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Component usage.wrn
<Image
  size="sm"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Component usage.wrn
<Image
  size="lg"
/>
Component events

Events

Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.

@loadFires when component data or media finishes loading.
@errorFires when the component encounters an error.
Event listener.js
const component = document.querySelector('[data-wrn-events]')

component.addEventListener('load', (event) => {
  console.log(event.detail)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
srcstring""No
altstring""No
widthstring""No
heightstring""No
loadingstring"lazy"No
roundedbooleanfalseNo
classstring""No
} }