Component template for a carousel section.

Introduction

A carousel section displays multiple banners in a rotating, swipeable format.

Often used on home pages, landing pages, or product sections to showcase various highlights within limited space, it helps keep the layout dynamic and maintains visual interest.

Running AB tests on banner order, visuals, or messaging and personalizing the banners based on audience segments, such as showing different promotions by source, device, or behavior, can increase engagement and conversion.

This template adds a carousel section component to your project or creates a new project using Next.js 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:

npx croct@latest use croct://ui/block/carousel-section

You can customize the template by specifying options:

npx croct@latest use croct://ui/block/carousel-section --router=page

Options

The following options are available for this template:

OptionDescriptionRequiredDefault
projectNameThe name of the project.Nomy-app
versionThe Next.js version to use.Nolatest
routerThe router to use (app or page).Noapp
javascriptWhether to use JavaScript instead of TypeScript.Nofalse
extensionAn extension template to execute after the template.Nonone

Start building in seconds

Paste the following command in your terminal and let the CLI do the rest.

npx croct@latest init