category-filter

Category Filter

A category's products with filters in collapsible sidebar sections, sorting, badges for the active filters, and a load-more button.

Parts

PartFileDoes
CategoryFilterCategoryFilter.vueShows a category's products with filters, sorting and a load-more button.

Styling

All of Category Filter’s styles live in category-filter.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue

Built from

API reference

CategoryFilter.vue

Shows a category's products with filters, sorting and a load-more button. Renders a <div>.

Props 24

PropTypeDefault
filtersUiFilter[][]
activeFiltersRecord<string, unknown>{}
sortOptionsUiSort[][]
activeSortingstring'default'
totalResultsnumber0
titlestring''
descriptionstring''
productsProduct[][]
currencystring'EUR'
localestring—
resultsLabel((count: number) => string)`${count} ${count === 1 ? 'result' : 'results'}`
filtersLabelstring'Filters'
sheetTitlestring'Filters'
sortPlaceholderstring'Sort by'
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—

Events 5

EventPayload
reset—
addFilterfield: string, value: UiFilterValue
removeFilterfield: string, value?: string | undefined
sortResultsortBy?: string | undefined
loadMore—

Recipe category-filter 1 group

Recipe category-filter-description 1 group

Recipe category-filter-heading 1 group

Recipe part-title 1 group

Recipe hint 1 group

Category Filter
State