An open API service indexing awesome lists of open source software.

https://github.com/kayviaharriott/card-carousel-reactjs

A card carousel component for reactjs
https://github.com/kayviaharriott/card-carousel-reactjs

card carousel carousel-component mui reactjs typescript vite

Last synced: 2 months ago
JSON representation

A card carousel component for reactjs

Awesome Lists containing this project

README

        

# 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.

```js
import CardCarousel from 'card-carousel-reactjs';

// Use the CardCarousel component
Card One,

Card Two
,
Card Three
,
Card Four
,
Card Five
,
]}
/>
```

## 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:

```js
Card One,

Card Two
,
Card Three
,
]}
width={400}
height={200}
/>
```

## Contributing

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