Skip to main content

LocationFilters

packages/leisure/components/organisms/LocationFilters.js · Tier: organism · Module: leisure · Rendering: Server Component

Purpose​

A single-select city-place category filter. Each chip links to the locations list with the matching ?category= query (selecting the active one clears it).

Props​

PropTypeRequiredDefaultDescription
langstringyes—For building hrefs.
tobjectyes—tourism.locations dictionary.
categoryLabelsobjectyes—tourism.placeDetail.categoryLabels.
activeCategorystring | nullyes—The active category.

Composition​

  • Uses: molecules/leisure/FilterSection, molecules/leisure/FilterChips, categoryIcon (leisure/lib/utils/format).
  • Used by: the tourism locations list page (alongside LocationsList).

Internationalisation​

Copy from t; category labels from categoryLabels.

Accessibility​

Delegates to FilterSection/FilterChips.

organisms/leisure/LocationsList, organisms/leisure/EventFilters, molecules/leisure/FilterChips.