Skip to main content

EventFilters

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

Purpose​

The event type + paid/free filter controls for the events list. Each chip links to the events list with the corresponding query string, preserving the other active filter.

Props​

PropTypeRequiredDefaultDescription
langstringyes—For building hrefs.
tFiltersobjectyes—leisure.eventFilters dictionary.
typeLabelsobjectyes—leisure.eventTypes labels.
eventTypesstring[]yes—Available event-type codes.
eventTypestring | nullyes—Active type filter.
paidboolean | nullyes—Active paid filter.

Composition​

  • Uses: molecules/leisure/FilterSection, molecules/leisure/FilterChips.
  • Used by: the events list page (alongside EventsList).

Internationalisation​

Copy from tFilters; type labels from typeLabels.

Accessibility​

Delegates to FilterSection (labelled <nav>) and FilterChips (aria-pressed).

organisms/leisure/LocationFilters, organisms/leisure/EventsList, molecules/leisure/FilterChips.