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

@veeyaainnovatives/carousel

v1.0.1

Published

A reusable Carousel/Hero slider component with background images and customizable content for React applications

Downloads

198

Readme

@veeyaainnovatives/carousel

A reusable Hero Carousel component with background images and customizable content for React applications.

Features

  • 🎠 Hero carousel/slider with background images
  • 🎨 Customizable content (title, description, buttons)
  • 📱 Fully responsive design
  • 🔧 Flexible slide configuration
  • 💅 Customizable styling via CSS classes
  • 🎯 Support for HTML/JSX in titles

Installation

npm install @veeyaainnovatives/carousel

Peer Dependencies

This package requires the following peer dependencies:

  • react (^16.8.0 || ^17.0.0 || ^18.0.0)
  • react-dom (^16.8.0 || ^17.0.0 || ^18.0.0)
  • react-bootstrap (^2.0.0)

Usage

Basic Example

import { HeroCarousel } from '@veeyaainnovatives/carousel';

function App() {
  const slides = [
    {
      id: 1,
      image: "/path/to/image1.jpg",
      title: "Welcome to Our Site",
      description: "This is a description of the first slide.",
      buttonText: "Get Started",
      buttonOnClick: () => console.log('Get Started clicked'),
      interval: 3000
    },
    {
      id: 2,
      image: "/path/to/image2.jpg",
      title: "Second Slide",
      description: "This is a description of the second slide.",
      buttonText: "Learn More",
      buttonOnClick: () => console.log('Learn More clicked'),
      interval: 3000
    }
  ];

  return (
    <HeroCarousel slides={slides} />
  );
}

Advanced Example with HTML in Title

import { HeroCarousel } from '@veeyaainnovatives/carousel';

function App() {
  const slides = [
    {
      id: 1,
      image: "/path/to/image1.jpg",
      title: 'Welcome to Our <strong class="theme-color-tan">Amazing</strong> Site',
      description: "This is a description with highlighted text.",
      buttonText: "Get Started",
      buttonOnClick: () => handleClick(),
      interval: 5000
    }
  ];

  return (
    <HeroCarousel 
      slides={slides}
      className="custom-carousel"
      titleClassName="custom-title"
      descriptionClassName="custom-description"
    />
  );
}

Custom Content Rendering

import { HeroCarousel } from '@veeyaainnovatives/carousel';

function App() {
  const slides = [/* ... */];

  const renderCustomContent = (slide, index) => {
    return (
      <div>
        <h1 className="custom-title">{slide.title}</h1>
        <p className="custom-description">{slide.description}</p>
        <button onClick={slide.buttonOnClick}>
          {slide.buttonText}
        </button>
      </div>
    );
  };

  return (
    <HeroCarousel 
      slides={slides}
      renderCustomContent={renderCustomContent}
    />
  );
}

Props

| Prop | Type | Required | Default | Description | |------|------|----------|---------|-------------| | slides | array | Yes | [] | Array of slide objects | | slides[].id | string\|number | No | index | Unique identifier for slide | | slides[].image | string | Yes | - | Background image URL or path | | slides[].title | string\|JSX | No | - | Slide title (supports HTML with <strong> tags) | | slides[].description | string | No | - | Slide description text | | slides[].buttonText | string | No | - | Button text | | slides[].buttonOnClick | function | No | - | Button click handler | | slides[].interval | number | No | null | Auto-play interval in milliseconds (null = no auto-play) | | className | string | No | '' | Additional CSS classes for carousel container | | overlayClassName | string | No | 'overlay' | CSS classes for overlay div | | contentClassName | string | No | 'carousel-content' | CSS classes for content section | | titleClassName | string | No | 'home-title' | CSS classes for title | | descriptionClassName | string | No | 'home-desc' | CSS classes for description | | renderCustomContent | function | No | - | Custom content render function (slide, index) => JSX |

Slide Data Structure

{
  id: 1,                    // Optional: unique identifier
  image: "/path/to/image.jpg", // Required: background image
  title: "Slide Title",     // Optional: title text or HTML
  description: "Description text", // Optional: description
  buttonText: "Click Me",   // Optional: button text
  buttonOnClick: () => {},  // Optional: button click handler
  interval: 3000            // Optional: auto-play interval (ms)
}

Styling

The component uses the following default CSS classes:

  • .carousel-bg-img - Background image container
  • .overlay - Overlay div (customizable via overlayClassName)
  • .carousel-content - Content wrapper (customizable via contentClassName)
  • .home-content-section - Content section
  • .home-title - Title heading (customizable via titleClassName)
  • .home-desc - Description text (customizable via descriptionClassName)

You can override these styles or add custom classes using the className props. Make sure to include your CSS styles in your application.

Title with Highlighted Text

You can use HTML in the title to highlight specific words:

title: 'Welcome to Our <strong class="theme-color-tan">Amazing</strong> Site'

The component will parse the HTML and render <strong> tags with their classes correctly.

License

MIT

Author

Veeyaa Innovatives