API Reference

PropTypeDefaultDescription
Slides[]SlidenilSlide data (ImgSrc, ImgAlt, Title, Description, CTAHref, CTALabel).
VariantVariantDefaultStyle: "default", "with-text", "with-cta", "on-card".
Autoplay*AutoplayConfignilAuto-advance config (Interval in ms).
TouchboolfalseEnable left/right swipe gestures.
AspectRatiostring""Lock the frame ratio (e.g. "3/1", "16/9").
Heightstring""Explicit height override (when AspectRatio is unset).
HTMX*HTMXConfignilFetch slides from the server (Get URL).
IDstringautoContainer id used for Alpine state scoping; auto-generated when empty.
RootClassstring""Extra classes on the carousel container.