Skip to main content

FilterSection

packages/leisure/components/molecules/FilterSection.js · Tier: molecule · Module: leisure · Rendering: Server Component

Purpose​

A reusable visual container for filter sections: a rounded, bordered panel with an icon + title header and a content slot for chips/controls.

Props​

PropTypeRequiredDefaultDescription
titlestringyes—Section heading.
iconstringno'filter_list'Header icon.
childrenReactNodeyes—The filter controls (e.g. FilterChips).
ariaLabelstringno'filter'aria-label of the <nav>.
classNamestringno''Extra classes.

Composition​

  • Uses: atoms/core/Icon.
  • Used by: organisms/leisure/EventFilters, organisms/leisure/LocationFilters.

Internationalisation​

title supplied (localized) by the caller.

Accessibility​

Renders a labelled <nav> with an <h2> heading.

Styling & tokens​

bg-surface-container-lowest, border-outline-variant, rounded-md, shadow-sm.

molecules/leisure/FilterChips, molecules/core/AdminUserFilters.