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.

States: Default, Hover, Focus

Parts

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

Styling

PartRecipe
CategoryFiltercategory-filter
CategoryFiltercategory-filter-heading
CategoryFiltercategory-filter-description
CategoryFilterpart-title
CategoryFilterhint
CategoryFilterclear-link

Install

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

npm packages
@lucide/vue

Built from

API reference

CategoryFilter CategoryFilter.vue

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

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—
EventPayload
reset—
addFilterfield: string, value: UiFilterValue
removeFilterfield: string, value?: string | undefined
sortResultsortBy?: string | undefined
loadMore—
Recipe category-filterSets
base: category-filter 1 property
Recipe category-filter-headingSets
base: category-filter-heading 3 properties
Recipe category-filter-descriptionSets
base: category-filter-description 3 properties
Recipe part-titleSets
base: part-title 4 properties
focus-ringshared state 3 properties
Recipe hintSets
base: hint 2 properties
Example
State