Skip to content
caliper ui pro docs

Product listing

A filterable grid of products with sort and a result count.

Pro

6 of 6 products

  • Linen overshirt

    ★ 4.7 (212)

    $89
  • Canvas tote

    ★ 4.5 (98)

    $34
  • Merino beanie

    ★ 4.8 (311)

    Only 2 left

    $28
  • Leather weekender

    ★ 4.9 (57)

    $240Sold out
  • Ceramic mug set

    ★ 4.4 (140)

    $46
  • Wool throw

    ★ 4.6 (76)

    $120

When to use

  • A shop page where people browse and narrow a catalogue.
  • Filters and sorting share the page.

When not to use

  • You show a single product; use product detail.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/product-listing

Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

ProductListing

5 props
PropTypeDefault
products *readonly Product[]—
onAdd *(p: Product) => void—
onOpen((p: Product) => void)—
currencystring"USD"
classNamestring—

Keyboard

  • Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It exposes group and status semantics, with aria-label, aria-pressed and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/product-listing.md

The index of every part is at /llms.txt.

More in Commerce