# Featured Department block

> Ecommerce catalog page with featured department and scrollable category index

Catalog landing pairing a large featured department hero with a scrollable sidebar of category tiles, breadcrumb header, item and price counts. ReUI Badge; shadcn Breadcrumb, Button, ScrollArea. For shop home, category browse, department directory.

- Type: Pro block
- Category: [Category Card](https://web.dev.reui.io/blocks/ecommerce/category-card.md)
- Page: https://web.dev.reui.io/blocks/ecommerce/category-card/category-card-4
- MCP: `get_block("category-card-4")`
- Built with: Badge, Breadcrumb, Button, Scroll Area
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A large featured department beside a scrolling index of the rest, with item counts, starting prices and a catalog total

## Agent notes

- `totalItemCount` sums the number parsed from each `itemCount` string when the module loads, so keep the leading number in those strings
- The first entry in `departments` becomes the featured hero and the rest fill the index; only the hero shows its `badge`
- At lg the hero and index share one fixed 620px height, so the `ScrollArea` scrolls extra departments instead of growing

## When not to use

- Individual products with star ratings and prices in a plain grid: use [Four-Column Catalog](https://web.dev.reui.io/blocks/ecommerce/product-card/product-card-9.md) (`get_block("product-card-9")`)
- A storefront banner with a deal countdown and three promo tiles: use [Countdown Deal Hero](https://web.dev.reui.io/blocks/ecommerce/shop-hero/shop-hero-3.md) (`get_block("shop-hero-3")`)

## Install

```bash
npx shadcn@latest add @reui/category-card-4
```

## About Category Card blocks

### When to use

- A shop by category section that sends shoppers from a photo into a department or collection
- Collection and catalog landing pages: a featured department, curated guides or seasonal edits
- A collections browse page that shoppers search, filter, sort and page through

### When not to use

- Individual items for sale on tiles, each with its own price and buy or wishlist controls: use the [Product Card blocks](https://web.dev.reui.io/blocks/ecommerce/product-card.md)
- Dashboard tiles for KPIs, records or setup guides, away from any storefront: use the [Card blocks](https://web.dev.reui.io/blocks/application/card.md)
- Rows of funds, transactions or integrations, each with a figure or a connect button: use the [List blocks](https://web.dev.reui.io/blocks/application/list.md)

### Agent notes

- `CategoryCard` takes no props and renders the arrays in its data module; add a prop to pass in your own categories
- Every `href` in the data module is a hash placeholder and every `image` points at an Unsplash demo photo; swap in your routes and photos
- Each page.tsx centers `CategoryCard` in a padded `min-h-svh` wrapper; drop it inside your own storefront layout

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
