# Ecommerce Category Preview: Carousel Preview

A category preview that slides products through a horizontal carousel, letting shoppers swipe across a collection without leaving the page on mobile.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/carousel-preview
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce), Free tier
- Group: [Category Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/carousel-preview.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-category-preview-carousel-preview
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/ecommerce-category-preview-carousel-preview.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/ecommerce/category-preview/carousel-preview`

## About this block

Carousel Preview is a full-width slideshow for showcasing product
categories one at a time. A wide panel fills a cinematic 21:9 frame
with a category image, a gradient overlay, and a content column on
the left that holds a heading, a short description, a star rating
with review count, a product count, a row of tag badges, and a
primary call-to-action button. An optional "Featured Collection"
badge appears above the heading on marked categories. Two icon
buttons and a dot-style progress indicator sit at the bottom of the
panel, and the slideshow also advances automatically on a five-second
interval.

The categories array drives everything: names, descriptions, images,
ratings, product counts, tags, and the featured flag are all data.
You can add or remove slides freely, drop the featured badge on any
slide or none, and swap the button label without touching the
carousel mechanics.

## When to use

Reach for this block at the top of a storefront home page or a
seasonal campaign landing page when you want each collection to feel
like a hero moment rather than a tile in a grid. It gives one
category the full viewport at a time, which lets you pair strong
imagery with real metadata like ratings and product counts. Compared
to a static grid, it works well when a few key collections deserve
individual spotlight treatment and the audience is likely browsing on
mobile where a swipeable full-width panel feels natural.

A natural flow around it on an Ecommerce page:

**Before**

- A short announcement banner or trust bar to orient shoppers before
  the first category slide appears
- [Promo Sections](https://www.shadcn-ui-blocks.com/blocks/ecommerce/promo-sections) to set a
  seasonal campaign context above the carousel

**After**

- [Product List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list) to let shoppers
  move straight from a category impression into browsable products
- [Customer Reviews](https://www.shadcn-ui-blocks.com/blocks/ecommerce/ecommerce-customer-reviews)
  to reinforce the ratings shown on each slide with full testimonials

## What you can display

Each slide is a self-contained category story, so the content can
reflect whatever collections matter most to your storefront at any
given time:

- **Seasonal or sale collections.** Swap in a "Summer Sale" or
  "New Arrivals" slide and update the tags to match the promotion
  without changing anything structural.
- **Brand or tier segmentation.** Use the featured badge on a
  flagship line and leave it off entry-level categories to guide
  shoppers toward premium options first.
- **Social proof per category.** Each slide carries its own rating
  and review count, so high-performing collections can lead with
  that credibility rather than sharing a single sitewide number.

> Tip: keep the tag row to two or three short labels per slide so
> the content column stays clean and the call-to-action button
> stays above the fold on smaller screens.

## More in Ecommerce Category Preview

- [Expandable Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/expandable-preview)
- [Grid Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/grid-preview)
- [Magazine Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/magazine-preview)
- [Scrolling Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/scrolling-preview)
- [Split Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/split-preview)
- [Three Column Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/three-column-preview)
