Carousel

Media

Takes a block

Slide track with named controls and dots; optional autoplay.

Carousel(label: …, autoplay: …, interval: …) { … }

Example

Carousel(label: "Recent work", autoplay: true, interval: 5000) { Carousel.Slide { Image(src: "/one.jpg", alt: "A bridge at dusk") } Carousel.Slide { Image(src: "/two.jpg", alt: "The harbour") } }

Renders with the class wf-carousel, stable across releases, so a stylesheet may target it.

Props of Carousel
Prop Type Meaning
label: String

Accessible name of the region

autoplay: Bool

Advance automatically

interval: Number

Milliseconds between slides

Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.