Back to blocks
BlockeCommerceFree

Category Carousel React component

A shop-by-category row of round photo bubbles that scrolls, drags and snaps, with arrows, a scroll progress bar, New badges and a Sale bubble; picking a category slides a ring onto it and swaps in that category's products with quick add buttons.

About the Category Carousel component

Category Carousel is the round 'shop by category' row you see near the top of many store home pages, especially on mobile. Each category is a photo bubble with its name and how many items it has, and the row scrolls sideways with a swipe, a mouse drag or the arrow buttons, with a thin bar showing how far along you are.

Tap a category and a green ring slides onto it while the products from that category appear underneath, so people can browse without leaving the page. Each product card shows the price, any sale discount and a quick add button.

When to use it

Use it on a store home page, at the top of a collection page or in a mobile app-like storefront where there are more categories than fit on one screen.

Use photos with the product centred on a plain background and set zoom per category so every item fills its circle about the same amount.

Installation

Add the Category Carousel component to your project with the shadcn CLI. It lands in components/category-carousel.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/category-carousel

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More eCommerce components

Featured Categories Banner
Free
Newsletter Discount Modal
Free
Icon Category Nav
Free
Cart Offer Modal
Free
Tabbed Product List
Free
Welcome Offer Modal
Free