Carousel — component.carousel
Bilder-Carousel auf scroll-snap-Basis: ohne JavaScript horizontal wischbar, der Controller ergänzt Pfeile, Punkte und Tastatur — kein Autoplay (bewusst). 1.1.0: Prop fit (contain für Screenshots) und Ziel desktop.shell (Store-Galerie). 1.2.0: zoom = Großansicht per Klick (natives dialog). 1.3.0: fes
Beispiele
Drei Folien mit Untertiteln

Einzelbild (keine Pfeile/Punkte)
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
slides * | array | — |
ratio | string: 16:9 | 4:3 | 1:1 | "16:9" |
fit | string: cover | contain | "cover" |
zoom | boolean | false |
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: change
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--carousel-arrow-background | var(--color-surface-default) |
--carousel-dot | var(--color-border-strong) |
--carousel-dot-active | var(--color-action-primary) |
Genutzte Design-Tokens
blur.md border.hairline color.action.primary color.border.strong color.border.subtle color.surface.backdrop color.surface.default color.surface.raised color.surface.sunken color.text.default color.text.muted duration.fast easing.standard elevation.modal elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.full radius.md radius.surface size.1 size.10 size.12 size.16 size.2 size.3 size.32 size.6 size.8 text.sm text.xs