npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-carousel-latest

v2.1.1

Published

A headless, accessible, tree-shakeable React carousel with a compound-component API (and a backwards-compatible CardSlider preset).

Downloads

11,012

Readme


📦 Installation

npm install react-carousel-latest

Import the base stylesheet once at your app root (and presets.css if you use a preset):

import "react-carousel-latest/styles.css";
import "react-carousel-latest/presets.css";

Using a preset? You can import both in one line instead: import "react-carousel-latest/bundle.css";


🚀 Quick start

A full-bleed image carousel with the staggered slice transition:

import { SlicerSlider } from "react-carousel-latest/presets";
import "react-carousel-latest/bundle.css";

const slides = [
  { src: "/photos/01.jpg", caption: "Slide 1" },
  { src: "/photos/02.jpg", caption: "Slide 2" },
  { src: "/photos/03.jpg", caption: "Slide 3" },
];

export default function App() {
  return <SlicerSlider slides={slides} loop autoplay slices={6} height={460} />;
}

Building something custom? The headless <Carousel> primitives, the other presets, theming, and the complete prop reference live in the documentation — with copy-paste code for every example.


✨ Features

  • Headless core — all logic in a useCarousel hook; bring your own markup.
  • Compound componentsCarousel.Track / Slide / Button / Dots / PlayPause.
  • ResponsiveslidesPerView + breakpoints to show several slides at once.
  • Imperative control — drive next / prev / goTo via a ref on <Carousel>.
  • Ready-made presetsCardSlider, ImageSlider, and SlicerSlider.
  • Interactions — keyboard (arrows / Home / End), touch & pointer swipe, and autoplay that pauses on hover/focus and respects prefers-reduced-motion.
  • Accessible — region/slide roles, aria-live, labelled controls.
  • No CSS framework required — bundled, themeable CSS. No Tailwind.
  • Next.js / RSC ready — ships "use client"; Dual ESM + CJS, full TypeScript types, sideEffects: false.

🧩 What's in the box

| Export | What it is | | -------------------------- | ----------------------------------------------------------- | | Carousel + useCarousel | Headless compound primitives — compose your own UI. | | CardSlider | Decorated card row with six design variants. | | ImageSlider | Full-bleed image carousel with caption + overlaid controls. | | SlicerSlider | Staggered horizontal-slice wipe transition. | | CubeSlider | 3D cube rotation between image slides (horizontal/vertical).|

Checkout Full API, theming, accessibility notes, and live demos: https://react-carousel-latest.vercel.app/


🤝 Contributing

Contributions are welcome! Please read the Contributing guide and our Code of Conduct. For bugs and ideas, use the issue templates.

🔒 Security

Found a vulnerability? Please follow the Security policy — don't open a public issue.

📝 Changelog

See CHANGELOG.md for release notes.

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.