Skip to content

Collection

Filters and sort are one GET form, so filtering, sorting and paging are plain query strings that Shopify or WooCommerce can read. The filters render once inside a Drawer. On wide screens they show in place as a sidebar or a row of dropdowns; on small screens a Filters button opens the drawer. Sorting submits on change, with a fallback button when scripts are off.

Shirts

48 products

Relaxed linen and soft cotton shirts, made to be worn every day.

Filters

Category
Category
Colour
Colour
Size
Size
Price
Price

Showing 6 of 48

Active filters

Clear all
  • title (h1), intro, count: the page header and result count
  • products: list of ProductCard props
  • filters: list of FilterGroup props ({ title, name, options })
  • active: list of { label, href } chips, each linking to the URL without that filter, plus clearHref for “Clear all” (default ?)
  • sortOptions, sort: options and current value for the sort select
  • placement: where the filters sit on wide screens, start (sidebar, default), end (sidebar on the other side), top (a row of dropdown filters above the grid, one open at a time)
  • drawer: keeps the filters in the drawer at every screen size, opened by the Filters button. Without it the drawer is only used on small screens.
  • columns: 2, 3 (default), 4. Phones always show two.
  • pagination: numbered (default), load-more, with page, pages and pageHref ({page} is replaced with the page number)
  • action: form action (default: the current URL)
  • id: prefix for the form, drawer and sort ids, needed when a page has more than one (default collection)
<Collection
title="Shirts"
count={48}
products={products}
filters={filters}
active={[{ label: "Linen", href: "?colour=sage" }]}
sortOptions={sortOptions}
page={1}
pages={4}
/>
placement="top" columns="4"

New in

32 products

Filters

Category
Category
Colour
Colour
Size
Size
Price
Price

Showing 8 of 32

drawer columns="4" pagination="load-more"

Home

40 products

Filters

Category
Category
Colour
Colour
Size
Size
Price
Price

Showing 8 of 40

Active filters

Clear all

Showing 8 of 40

Load more