New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

taughtcode-hero-carousel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taughtcode-hero-carousel

A sleek, responsive, and easy-to-use image carousel component for React, beautifully styled with TailwindCSS.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

A minimal, responsive, and customizable image carousel component built for React — with clean, vanilla CSS and no dependency on any framework or UI library (not even Tailwind).

Perfect for landing pages, portfolios, slideshows, and anywhere you need to show off a sleek image rotation.

✨ Features

✅ Lightweight and dependency-free ✅ Responsive design ✅ Navigation arrows (← / →) ✅ Dots for current slide indicator ✅ Autoplay with customizable interval ✅ Fully customizable via your own CSS ✅ Works in all modern browsers

📦 Installation

npm taughtcode-hero-carousel

Or with yarn:

yarn add taughtcode-hero-carousel

⚙️ Usage

import Carousel from "taughtcode-hero-carousel";
import "taughtcode-hero-carousel/src/carousel.css"; // Import styles

const images = [
  "/images/slide1.jpg",
  "/images/slide2.jpg",
  "/images/slide3.jpg",
];

<Carousel
  images={images}
  autoPlay={true}
  interval={4000}
  showDots={true}
  showArrows={true}
/>;

⚠️ Note about Image Paths

Images must be placed inside the public/ folder of your React project. Example:

your-project/
├── public/
│   └── images/
│       ├── slide1.jpg
│       ├── slide2.jpg
│       └── slide3.jpg

Using public paths like "/images/slide1.jpg" ensures the carousel loads correctly without bundler issues. Relative src/assets imports won't work unless you add extra handling for it.

🧩 Props

PropTypeDefaultDescription
imagesstring[][]Array of image URLs
autoPlaybooleanfalseAutomatically cycle through images
intervalnumber3000Delay between auto slides (in milliseconds)
showDotsbooleantrueShow small indicator dots below the carousel
showArrowsbooleantrueShow next/prev navigation arrows

🎨 Customization

  • The component uses plain CSS (carousel.css) — feel free to override any class using your own styles.
  • Class names are prefixed with carousel- to avoid conflicts.
  • Animations, transitions, and colors are fully tweakable.

📄 License

MIT — use it freely, modify it, or contribute back 🙌 If you found it useful, consider starring the repo ⭐

💬 Feedback & Contributions

Open to ideas, improvements, and contributions! Open a pull request or reach out on LinkedIn if you’d like to collaborate on cool frontend projects! 🔥

FAQs

Package last updated on 03 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts