3.3.11 • Published 12 months ago

card-carousel-reactjs v3.3.11

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

Card Carousel

Create a card carousel using this component by giving it a list of ReactNode items.

Installation

npm install card-carousel-reactjs

Usage

To use the CardCarousel component, import it into your project and pass an array of ReactNode items to it.

import CardCarousel from 'card-carousel-reactjs';

// Use the CardCarousel component
<CardCarousel
  items={[
    <div>Card One</div>,
    <div>Card Two</div>,
    <div>Card Three</div>,
    <div>Card Four</div>,
    <div>Card Five</div>,
  ]}
/>

Props

The CardCarousel component accepts the following props:

  • items (required): An array of ReactNode items to be displayed in the carousel.
  • width (optional): The width of each card. Default is 350px.
  • height (optional): The height of each card. Default is 150px.

Example

To customize the width and height of the carousel items:

<CardCarousel
  items={[
    <div>Card One</div>,
    <div>Card Two</div>,
    <div>Card Three</div>,
  ]}
  width={400}
  height={200}
/>

Contributing

Contributions will be welcomed soon... once issues are created!

3.3.11

12 months ago

3.3.10

12 months ago

3.3.9

12 months ago

3.3.7

12 months ago

3.3.6

12 months ago

3.3.5

12 months ago

3.3.4

12 months ago

3.3.3

12 months ago

3.3.1

12 months ago

3.3.0

12 months ago

3.2.0

12 months ago

3.1.9

12 months ago

3.1.7

12 months ago

3.1.6

12 months ago

3.1.5

12 months ago

3.1.4

12 months ago

3.1.3

12 months ago

3.1.2

12 months ago

3.1.1

12 months ago

3.1.0

12 months ago

2.1.9

12 months ago

2.1.8

12 months ago

2.1.7

12 months ago

2.1.6

12 months ago

2.1.5

12 months ago

2.1.4

12 months ago

2.1.3

12 months ago

2.1.2

12 months ago

2.1.1

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago