# React + Swiper.js

A carousel section using React and Swiper.js.

By Swiper.js. Categories: framework, interface, language.

[Demo](https://section-react-swiper-carousel.preview.croct.live) · [Deploy](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fcroct-tech%2Fvercel-template&project-name=section-react-swiper-carousel&repository-name=section-react-swiper-carousel&demo-title=React+%2B+Swiper.js&demo-description=A+carousel+section+using+React+and+Swiper.js.&demo-image=https%3A%2F%2Fcdn.croct.io%2Fassets%2Ftemplates%2Fcovers%2Finterface-section-react-swiper-carousel.png&external-id=npm%3A%2F%2Fswiper%2Freact&integration-ids=oac_cTQZ22CIXn5XgZXYk2nBwFdU&demo-url=https%3A%2F%2Fsection-react-swiper-carousel.preview.croct.live) · [Source](https://github.com/croct-tech/templates/blob/master/templates/npm/swiper/react/)

## Installation

```sh
npx croct@latest use npm://swiper/react
```

# Introduction

This carousel section template uses [Swiper.js](https://swiperjs.com/) with React to
create [carousels](https://croct.com/templates/interface/section/carousel-section) for displaying rotating content, such
as images, videos, or text.

It adds a carousel section component to your project or creates a new project
using [Next.js](https://nextjs.org/?utm_source=croct) if none is found in the current directory.

It comes fully integrated with Croct, giving you CMS, AB testing, and personalization out of the box.

## Usage

To create a new project using this template, run:

```croct-cmd
croct use npm://swiper/react
```

You can customize the template by specifying options:

```croct-cmd
croct use npm://swiper/react --router=page
```

## Options

The following options are available for this template:

| Option        | Description                                      | Required | Default  |
|---------------|--------------------------------------------------|----------|----------|
| `projectName` | The name of the project.                         | No       | `my-app` |
| `version`     | The Next.js version to use.                      | No       | `latest` |
| `router`      | The router to use (`app` or `page`).             | No       | `app`    |
| `javascript`  | Whether to use JavaScript instead of TypeScript. | No       | `false`  |
