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

my-react-carousel-component

v1.0.5

Published

A customizable carousel component built with React and TypeScript.

Readme

React Carousel Component

A fully responsive and customizable carousel component for React. This package allows you to create beautiful, functional carousels with optional navigation, dots, autoplay, and responsive layouts, making it highly versatile for different use cases.

Features

  • Autoplay: Automatically transitions between carousel items without manual input.
  • Looping: Enable looping for continuous slide transitions.
  • Navigation: Next and Previous arrows to navigate through the items.
  • Dots: Visual indicators to show which slide is currently active.
  • Responsive: Adjust the number of carousel items displayed based on screen size.
  • Customizable: Easily customize the carousel's appearance and functionality using Tailwind CSS.

Installation

To install the carousel component in your React project, run one of the following commands:

Using npm:

npm install my-react-carousel-component

Using yarn:

yarn add my-react-carousel-component

Basic Usage Example

Now, provide a basic example of how to use your carousel component. This includes importing the component and using it with a few sample slides. You should include how to pass props to customize it, such as options, className, etc.

Basic Example

To use the carousel, import it into your React component and wrap your carousel items in it. Here's a basic example:

import React from "react";
import CarouselWrapper from "my-react-carousel-component";

const App = () => (
  <CarouselWrapper
    options={{
      loop: true,
      nav: true,
      dots: true,
      responsive: {
        0: { items: 1 },
        768: { items: 2 },
        1024: { items: 3 },
      },
    }}
    className="owl-carousel" // Tailwind or custom CSS classes
  >
    <div className="item bg-red-300 p-8">
      <h4>1</h4>
    </div>
    <div className="item bg-blue-300 p-8">
      <h4>2</h4>
    </div>
    <div className="item bg-green-300 p-8">
      <h4>3</h4>
    </div>
    <div className="item bg-yellow-300 p-8">
      <h4>4</h4>
    </div>
    <div className="item bg-gray-300 p-8">
      <h4>5</h4>
    </div>
    <div className="item bg-pink-300 p-8">
      <h4>6</h4>
    </div>
  </CarouselWrapper>
);

export default App;

Options

You can customize the carousel by passing the following options to the CarouselWrapper component:

  • loop: (boolean) Enable or disable the looping of items. Default is false.
  • autoplay: (boolean) Enable automatic transition between items. Default is false.
  • autoplayInterval: (number) Time in milliseconds between auto transitions. Default is 3000.
  • dots: (boolean) Show navigation dots below the carousel. Default is false.
  • nav: (boolean) Show previous/next arrows for navigation. Default is false.
  • responsive: (object) Define the number of items to show at different screen sizes.

Example of responsive options:

responsive: {
  0: { items: 1 },     // 1 item on small screens
  768: { items: 2 },   // 2 items on medium screens
  1024: { items: 3 },  // 3 items on large screens
}


---