Skip to content

searchcraft-filter-panel

This web component represents a series of filters that allows users to refine and control their search queries by applying various filter criteria.

import { SearchcraftFilterPanel } from "@searchcraft/react-sdk";
index.html
<searchcraft-filter-panel />
index.js
const filterPanel = document.querySelector('searchcraft-filter-panel');
if (filterPanel) {
filterPanel.items = [];
}
PropertyAttributeDescriptionTypeDefault
itemsThe items to filter.FilterItem[][]
responsiveBehaviorresponsive-behaviorControls whether the filter panel automatically hides/shows based on window size. - ‘auto’: Automatically hide/show based on window width - ‘manual’: User controls visibility manually"auto" | "manual" | undefined'auto'
responsiveBreakpointresponsive-breakpointThe breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (—sc-breakpoint-md).number | undefined768
searchcraftIdsearchcraft-idThe id of the Searchcraft instance that this component should use.string | undefinedundefined