Back to blocks
BlockeCommerceFree

Featured Categories Banner React component

A banner of expanding category panels: the open one grows to show its photo, headline, tagline, product count and a Shop button while the others shrink to vertical labels, rotating on a timer with a progress line that pauses on hover; on phones it becomes a vertical accordion.

About the Featured Categories Banner component

Featured Categories Banner puts three to five categories side by side as tall photo panels. One is open at a time: it widens to show the photo, a short headline, a line about what's inside, how many products there are and the starting price, with a Shop button. The others shrink to slim strips with their names written vertically.

It moves on to the next category on a timer, with a thin line showing how long is left, and stops while someone is hovering or using the keyboard inside it. Hover or tap any strip to open it. On phones the panels stack into an accordion that works the same way.

When to use it

Use it on a store home page under the main hero, or at the top of a seasonal landing page, to push a handful of categories you want people to notice.

Keep headlines to three or four words and pick photos with the product in the middle, since closed panels only show a slice of the image.

Installation

Add the Featured Categories Banner component to your project with the shadcn CLI. It lands in components/featured-categories-banner.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/featured-categories-banner

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More eCommerce components

Icon Category Nav
Free
Category Carousel
Free
Tabbed Product List
Free
Newsletter Discount Modal
Free
Masonry Product Grid
Free
Cart Offer Modal
Free