Product listing
A filterable grid of products with sort and a result count.
6 of 6 products
Linen overshirt
★ 4.7 (212)
$89Canvas tote
★ 4.5 (98)
$34Merino beanie
★ 4.8 (311)
Only 2 left
$28Leather weekender
★ 4.9 (57)
$240Sold outCeramic mug set
★ 4.4 (140)
$46Wool 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
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
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.mdThe index of every part is at /llms.txt.