src | string | Component | — | src={ExampleIcon} | Image or video URL, or a resource-svelte image component. |
size | ImageSize | — | size={value} | Image size. When omitted, inherits size context from ImageGroup automatically. |
alt | string | — | alt="Example" | Alternative text for the image. |
mediaLoading | MediaLoading | — | mediaLoading={value} | Native loading policy for string image URLs. Explicit values override the nearest provideMediaLoading() default; the fallback is lazy. Separate from Frame visual loading. |
previewMode | PreviewMode | — | previewMode={value} | Explicit preview method. When omitted, uses a shared ImageViewer if one exists on the page; otherwise string media opens in a new window. |
onOpen | (event?: MouseEvent | KeyboardEvent) => void | — | onOpen={(value) => { /* handle value */ }} | Called when a click or keyboard action opens the image. Providing it takes over the default Viewer or new-window action; the caller must perform the opening behavior. |
badgePosition | "top" | "bottom" | "top" | badgePosition="top" | Corner badge position: top is upper right and bottom is lower right. |
children | Snippet | — | <Image>Content</Image> | Media attachments. A child as="icon" is centered, while as="badge" is positioned at a corner. Neither replaces the media content. |
| No data |