Carousel
A slideshow built on Embla, composed from Root, Content, Item, Previous, and Next.
Starter
For side projects and trying things out.
$0 / month
Team
Shared workspaces and unlimited projects.
$24 / month
Business
Audit logs, SSO, and priority support.
$60 / month
Enterprise
Dedicated infrastructure and a named contact.
Custom
When to use
- Use when
- A small set of related slides that people browse one at a time, such as product images.
- Avoid when
- The content matters to everyone; put it on the page instead of behind a swipe.
Installation
The source lands in src/components/ui/carousel.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@stylexjs/stylex,embla-carousel-react- Figma
- Optional native Figma library. See Designers.
Verified
- Size
- 1.9 kB gzipped on its own, 18 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
- Accessibility
- Axe passes on 3 stories
- Behavior
- 3 interaction tests in Storybook
- Rendering
- Parent re-renders skip its consumers
- React Doctor
- React Doctor finds nothing