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

traves-custom-carousel

v1.0.0

Published

A highly customizable React carousel component with smooth animations and responsive layouts.

Downloads

10

Readme

Custom React Carousel

A highly customizable React carousel component with smooth animations and responsive layouts.

Features

  • 🖼️ Hero Carousel - Full-width slider perfect for hero sections with text overlay and CTA buttons
  • 🛍️ Product Carousel - Responsive grid layout ideal for showcasing products
  • 📱 Fully Responsive - Customize how many items appear on different screen sizes
  • 🎭 Animations - Beautiful animations powered by Framer Motion
  • 👆 Touch Support - Swipe gestures for mobile devices
  • Accessible - Built with accessibility in mind
  • 🔄 Auto Play - Optional auto-rotation with customizable interval

Note: motion is a peer dependency and needs to be installed separately.

Usage

Hero Carousel

import { Carousel } from "react-fluid-carousel";

const App = () => {
  const heroItems = [
    {
      image: "/images/hero1.jpg",
      title: "Welcome to our store",
      description: "Discover amazing products at great prices",
      button: "Shop Now",
    },
    {
      image: "/images/hero2.jpg",
      title: "Summer Collection",
      description: "Check out our latest summer arrivals",
      button: "View Collection",
    },
    // Add more slides as needed
  ];

  return (
    <Carousel
      type="hero"
      items={heroItems}
      autoPlay={true}
      autoPlayInterval={5000}
      showArrows={true}
      showDots={true}
    />
  );
};

Product Carousel

import { Carousel } from "react-fluid-carousel";

const App = () => {
  const productItems = [
    {
      image: "/images/product1.jpg",
      title: "Product 1",
      description: "Product description here",
      price: "$99.99",
      button: "Add to Cart",
    },
    {
      image: "/images/product2.jpg",
      title: "Product 2",
      description: "Product description here",
      price: "$149.99",
      button: "Add to Cart",
    },
    // Add more products as needed
  ];

  return (
    <Carousel
      type="product"
      items={productItems}
      autoPlay={true}
      autoPlayInterval={5000}
      showArrows={true}
      showDots={true}
      itemsPerView={{
        desktop: 4,
        tablet: 2,
        mobile: 1,
      }}
    />
  );
};

Props

Common Props

| Prop | Type | Default | Description | | ------------------ | --------------------- | -------- | -------------------------------------------------- | | type | 'hero' \| 'product' | 'hero' | Type of carousel to render | | items | CarouselItem[] | [] | Array of items to display in the carousel | | autoPlay | boolean | true | Whether to auto-rotate slides | | autoPlayInterval | number | 5000 | Time in ms between slides when autoPlay is enabled | | showArrows | boolean | true | Whether to show navigation arrows | | showDots | boolean | true | Whether to show navigation dots |

Product Carousel Only

| Prop | Type | Default | Description | | -------------- | ----------------------------------------------------- | -------------------------------------- | ---------------------------------------------------------- | | itemsPerView | { desktop: number; tablet: number; mobile: number } | { desktop: 4, tablet: 3, mobile: 1 } | Number of items to show per slide at different breakpoints |

Item Structure

interface CarouselItem {
  image?: string; // URL to image
  title?: string; // Item title
  description?: string; // Item description
  button?: string; // Button text (optional)
  price?: string; // Price text (for product carousel)
  [key: string]: any; // Additional custom properties
}

Breakpoints

The responsive breakpoints used are:

  • Mobile: < 640px
  • Tablet: 640px - 1024px
  • Desktop: > 1024px

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT