@wasd/design-system-carousel
v0.6.0
Published
Token-based carousel primitives for featured content, media galleries, and horizontally scrollable collections.
Downloads
1,270
Readme
@wasd/design-system-carousel
Token-based carousel primitives for featured content, media galleries, and horizontally scrollable collections.
Use the framework adapters for stateful navigation, autoplay, keyboard support, and slide registration. Import @wasd/design-system-carousel/css for class-based HTML.
Responsive layouts
Use responsive for container-width breakpoint overrides. Top-level props are the base layout, then sm, md, lg, xl, and 2xl overrides merge upward.
<WASCarousel
slidesPerView={1}
controlPlacement="bottom"
responsive={{
md: { slidesPerView: 2 },
lg: { slidesPerView: 3, controlPlacement: "outside" }
}}
>
...
</WASCarousel>