headless-commerce
    Preparing search index...

    Props for the controlled product filters panel.

    interface ProductFiltersProps {
        categories: readonly ProductCategory[];
        filters: ProductFilterState;
        maxPriceCents: number;
        onChange: (filters: ProductFilterState) => void;
        onReset: () => void;
        resultCount: number;
        totalCount: number;
    }
    Index

    Properties

    categories: readonly ProductCategory[]

    Catalog categories rendered as quick filter buttons.

    Current filter state owned by the catalog container.

    maxPriceCents: number

    Upper price bound used by the range input and reset logic.

    onChange: (filters: ProductFilterState) => void

    Emits every client-side filter, search, and sort change.

    onReset: () => void

    Restores the catalog to its default filter state.

    resultCount: number

    Number of products visible after filtering.

    totalCount: number

    Number of products available before filtering.