New
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.
- Sale
Waxed canvas tote
Sale price£42
Was£56 - Sale
Brass desk lamp
Sale price£145
Was£180
Options
Section titled “Options”title(h1),intro,count: the page header and result countproducts: list ofProductCardpropsfilters: list ofFilterGroupprops ({ title, name, options })active: list of{ label, href }chips, each linking to the URL without that filter, plusclearHreffor “Clear all” (default?)sortOptions,sort: options and current value for the sort selectplacement: 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, withpage,pagesandpageHref({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 (defaultcollection)
<Collection title="Shirts" count={48} products={products} filters={filters} active={[{ label: "Linen", href: "?colour=sage" }]} sortOptions={sortOptions} page={1} pages={4}/>New in
32 products
- New
- Sale
Waxed canvas tote
Sale price£42
Was£56 - Sale
Brass desk lamp
Sale price£145
Was£180 - Sold out
Home
40 products
- New
- Sale
Waxed canvas tote
Sale price£42
Was£56 - Sale
Brass desk lamp
Sale price£145
Was£180 - Sold out
Showing 8 of 40
Load more