editor/reference/jsx/image.md
konstantin-paulus 81d29d5d88 Add Shader Paint functionality and related components
Introduced a new `<shaderPaint>` element that applies a WGSL fragment shader to the media paint directly below it in the paint stack. Implemented support for shader uniforms and updated the rendering logic to handle shader paints in the engine. Enhanced the API to include shader-related methods and types, ensuring seamless integration with existing media elements. Updated documentation and examples to demonstrate the new shader capabilities, improving user guidance and showcasing practical implementations.
2026-07-20 20:56:32 +02:00

683 B

<image>

An image. src resolves to an image asset (see media.md).

<image src="/photo.jpg" x={40} y={40} width={200} height={112} />

Props

All common props, plus:

Prop Type Default Meaning
src string | AssetRef required See media.md.
objectFit "cover" | "contain" | "fill" "cover" How the source maps into the box.

A paint child draws over the media paint created by src (see paints.md); a <shaderPaint> child instead post-processes it, so the image renders through the shader.