Bild-Zoom (Lightbox) — component.image-zoom
Klickbares Bild öffnet ein Vollbild-Overlay (Backdrop, Escape/Klick schließt, Scroll-Lock) — ohne JS bleibt es ein normales Bild. 1.2.0 (opt-in): imageWidth/imageHeight und skeleton an ui.image 1.3 (Platz vorab, Ladeschimmer). 1.3: feste Texte mehrsprachig (invisible_i18n).
Componentv1.3.1Inhaltweb.documentweb.applicationdesktop.shell
Beispiele
Bild mit Zoom (klicken → Vollbild)
Getrennte Vorschau/Vollbild-Datei
Unsichere Adresse → Platzhalter
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
src * | string | — |
alt * | string | — |
caption | string | "" |
ratio | string: auto | 16:9 | 4:3 | 1:1 | "auto" |
imageWidth | number | 0 |
imageHeight | number | 0 |
skeleton | boolean | false |
linkToZoom | boolean | false |
zoomSrc | string | "" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: open, close
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--image-zoom-max-width | 92vw |
--image-zoom-max-height | 85vh |
--image-zoom-backdrop | var(--color-surface-backdrop) |
Genutzte Design-Tokens
color.action.secondary color.surface.backdrop color.surface.overlay color.surface.sunken color.text.default color.text.inverse color.text.muted duration.fast easing.standard elevation.overlay elevation.raised font.family.default layer.modal radius.control radius.full radius.surface size.10 size.2 size.24 size.32 size.4 size.6 size.8 text.sm