Installation
In the directory containing package.json, run your package manager's install command:
- npm
- Yarn
- pnpm
npm install nuka-carousel
yarn add nuka-carousel
pnpm add nuka-carousel
info
Nuka Carousel has a peer dependency on React 18.
Basic Usage
import Carousel from "nuka-carousel"
const App = () => {
return (
<Carousel>
<img src="/image1.png" />
<img src="/image2.png" />
<img src="/image3.png" />
<img src="/image4.png" />
<img src="/image5.png" />
</Carousel>
)
}