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[][]
searchcraftIdsearchcraft-idThe id of the Searchcraft instance that this component should use.string | undefinedundefined