filter-sidebar

Filter Sidebar

A product list with its filters in a collapsible sidebar beside it, plus sorting and search.

States: Default, Hover, Focus

Parts

PartFileDoes
FilterSidebarFilterSidebar.vueShows a product list with filters in a collapsible sidebar, plus sorting and search.

Styling

PartRecipe
FilterSidebarfilter-sidebar
FilterSidebartitle
FilterSidebarhint
FilterSidebarclear-link

Install

Writes 3 files into components/templates/filter-sidebar/. For agents, npx @frontic/ui docs filter-sidebar prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue

Built from

API reference

FilterSidebar FilterSidebar.vue

Shows a product list with filters in a collapsible sidebar, plus sorting and search. Renders a <div>.

PropTypeDefault
filtersUiFilter[][]
activeFiltersRecord<string, unknown>{}
sortOptionsUiSort[][]
activeSortingstring'default'
searchTermstring''
totalResultsnumber0
categorystring''
productsProduct[][]
currencystring'EUR'
localestring—
resultsLabel((count: number) => string)`${count} ${count === 1 ? 'product' : 'products'}`
showFiltersLabelstring'Show Filters'
hideFiltersLabelstring'Hide Filters'
filtersLabelstring'Filters'
sheetTitlestring'Filters & Sort'
sortPlaceholderstring'Sort by'
searchPlaceholderstring'Search products...'
resetLabelstring'Reset'
showResultsLabel((count: number) => string)`Show Results (${count})`
removeLabel((label: string) => string)`Remove ${label}`
activeFiltersLabelstring'Active filters'
clearAllLabelstring'Clear all'
emptyTitlestring'No products match these filters'
emptyTextstring'Remove a filter or clear them all to see more.'
loadMoreLabelstring'Load more'
swatchColorsRecord<string, string>{ ...DEFAULT_SWATCH_COLORS }
classClassValue—
EventPayload
reset—
addFilterfield: string, value: UiFilterValue
removeFilterfield: string, value?: string | undefined
sortResultsortBy?: string | undefined
loadMore—
update:searchTermterm: string
Recipe filter-sidebarSets
base: filter-sidebar 1 property
Recipe titleSets
base: title 1 property
Recipe hintSets
base: hint 2 properties
Example
State