@swapneshio/carousel
v1.1.3
Published
simple easy to use react-carousel
Downloads
5
Maintainers
Readme
@swapneshio/carousel
A simple react-based logo/img/card corousal
Installation
You can install the package using npm, yarn, or pnpm:
npm install @swapneshio/carousel
yarn add @swapneshio/carousel
pnpm add @swapneshio/carousel
CDN Usage
You can include the @swapneshio/carousel
package directly from jsDelivr using the following link:
https://cdn.jsdelivr.net/npm/@swapneshio/carousel@latest/dist/index.js
OR
<script src="https://cdn.jsdelivr.net/npm/@swapneshio/carousel@latest/dist/index.js"></script>
Usage
pass multiple jsx/img/card as a child to the Carousel
component to make it work.
import React from 'react';
import Carousel from '@swapneshio/carousel';
const App = () => {
const styles = {
// Your custom styles here
};
return (
<Carousel >
{/* add multiple img/logo/card here */}
{/* like
<Card1/>
<Card2/>
<Card3/> */}
</Carousel>
);
};
export default App;
License
This project is licensed under the MIT License - see the LICENSE file for details.