# Ecommerce Product List: Compact List

A dense list packing each product into a slim row with thumbnail, name, and price. Fits long catalogs and search results where space is tight.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/compact-list
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce), Free tier
- Group: [Product List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/compact-list.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-product-list-compact-list
```

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-product-list-compact-list.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/ecommerce/product-list/compact-list`

## About this block

Compact List arranges products in a vertical stack of slim rows. Each row
holds a square thumbnail on the left, then a three-column information
rail: product name with a star rating and review count, a price column
showing both the current price and a struck-through original price, and
an action column with an "Add to Cart" button and a wishlist icon button.
Hovering a row shifts its background to signal interactivity.

The list renders six items by default. The thumbnail, name, rating copy,
price pair, and button label are all independent, so you can adjust any
of them without touching the row structure. Items can be added or removed
freely, and the action column collapses gracefully on narrow screens.

## When to use

Reach for this block when vertical space is limited but the catalog is
long. It suits a course library page on an online education platform
where learners need to scan dozens of titles, ratings, and prices quickly
before clicking through. It works better than a grid layout when the
items differ only in name and price and a large image adds no extra value,
and better than a table when you want a softer, card-like feel rather than
a rigid data grid.

A natural flow around it on an Ecommerce page:

**Before**

- [Category Filters](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-filters) to let learners
  narrow the list by subject, level, or price before they scan results
- [Promo Sections](https://www.shadcn-ui-blocks.com/blocks/ecommerce/promo-sections) for a short
  promotional banner above the catalog that highlights a sale or new
  arrivals

**After**

- [Customer Reviews](https://www.shadcn-ui-blocks.com/blocks/ecommerce/ecommerce-customer-reviews) to
  reinforce purchase confidence once a learner has spotted a title
- [Filter List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/filter-list) as a
  heavier alternative when the catalog grows large enough to need
  sidebar filtering

## What you can display

One row holds everything a shopper needs to act, so the frame works for
more than physical goods:

- **Online courses and subscriptions.** Swap the product name for a
  course title, the rating for an enrollment count, and the price for
  a monthly or one-time fee to create a clean course catalog.
- **Digital downloads.** List ebooks, templates, or asset packs with
  their original and sale prices so customers can compare at a glance
  without opening a detail page.
- **Bundled items in a cart sidebar.** Drop the block into a review
  step to show every selected item with its price and a remove action
  before checkout.

> Tip: keep the product name short enough to fit on one line at typical
> viewport widths; long titles truncate and the rating row shifts up.

## More in Ecommerce Product List

- [Comparison List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/comparison-list)
- [Featured List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/featured-list)
- [Filter List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/filter-list)
- [Gallery List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/gallery-list)
- [Grid List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/grid-list)
- [Masonry List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/masonry-list)
- [Table List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/table-list)
- [Timeline List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/timeline-list)
