
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@ds-kit/carousel
Advanced tools
title: "Carousel" slug: "/packages/carousel" category: "layout" componentNames:
The Carousel component can be used to display a set of items in a horizontally scrolling container. This is particularly useful for longer tabs, or similar content that should not take up too much vertical space on mobile.
The carousel is used under the hood in the TabBar component, so you can also see it in action in input patterns.
import { Carousel, CarouselItem } from "@ds-kit/carousel"
For this simple example we will render a carousel with items of the same width.
<Carousel variant="full">
<CarouselItem>
<Div width="100%" bg="#EEE" p="1rem">
Item 1
</Div>
</CarouselItem>
<CarouselItem>
<Div width="100%" bg="#EEE" p="1rem">
Item 2
</Div>
</CarouselItem>
<CarouselItem>
<Div width="100%" bg="#EEE" p="1rem">
Item 3
</Div>
</CarouselItem>
<CarouselItem>
<Div width="100%" bg="#EEE" p="1rem">
Item 4
</Div>
</CarouselItem>
</Carousel>
A carousel with variable width items.
<Carousel variant="full">
<CarouselItem width="auto">
<Div bg="#EEE" p="1rem">
Variable widths
</Div>
</CarouselItem>
<CarouselItem width="auto">
<Div bg="#EEE" p="1rem">
Small
</Div>
</CarouselItem>
<CarouselItem width="auto">
<Div bg="#EEE" p="1rem">
Longer components are possible too
</Div>
</CarouselItem>
<CarouselItem width="auto">
<Div bg="#EEE" p="1rem">
This will only scroll when it's longer than the container
</Div>
</CarouselItem>
</Carousel>
FAQs
Carousel component
We found that @ds-kit/carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.