1.1.0 • Published 10 months ago

insperax-carousel v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

��# carousel

Carousel

A simple image carousel component for React.

Table of Contents

Installation

To install the carousel package, run:

npm install insperax-carousel




import Carousel from 'insperax-carousel; // Update to your package name

import React from 'react';
import Carousel from 'your-carousel-package-name';

const App = () => {
  const images = [
    '/path/to/image1.jpg',
    '/path/to/image2.jpg',
    '/path/to/image3.jpg',
  ];

  return (
    <div>
      <h1>My Image Carousel</h1>
      <Carousel images={images} initialIndex={0} />
    </div>
  );
};

export default App;


Props
Carousel Component Props
Prop	Type	Description
images	Array	An array of image URLs to display in the carousel.
initialIndex	Number	(Optional) The starting index for the displayed image (default is 0).
1.1.0

10 months ago

1.0.0

10 months ago