Category

Source: apps/jti-next/src/components/Category/

The Category component is the page template that drives both the shop landing and all category pages. It is not registered as a Builder.io component itself — instead it sets up the data bindings and context providers, then delegates layout to a Builder.io "category" model entry.

Role

  • Fetches a "category" model Builder.io entry for the current URL path.
  • Provides FilterContext via FilterProvider for client-side subcategory filtering.
  • Calls getCategoryContentBindings() to construct the data object injected into Builder.io <Content>.

Builder.io data bindings (getCategoryContentBindings)

The following fields are available inside any "category" model page in Builder.io:

Binding key Type Description
categoryName string Display name of the current category
categoryItems CategoryItem[] Ordered, whitelisted, overridden product list
categoryFilters SubcategoryFilter[] Subcategory filter options with product counts
subcategoriesMap Record<string, string[]> Map of subcategory UID → SKU list for client-side filtering