Velocity X Components

Standard Navigation

Filter & Sort Toolbar

The control bar that sits above any listing: result count, a sort dropdown, a List/Grid view switch, and a filter trigger badged with how many filters are active. This sets the state; pair it with a filter-chip row if you also need to show which filters are applied.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-filter-sort-toolbar

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Filter & Sort Toolbar →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Filter & Sort Toolbar
248 results

Props

NameTypeRequiredDefaultDescription
resultCountnumberYesshown as "N results"
sortOptions{ value: string, label: string }[]No[]
sortValuestringYes
onSortChange(value: string) => voidYes
viewMode'list' | 'grid'Yesomit to hide the switch
onViewModeChange(mode: 'list' | 'grid') => voidYes
activeFilterCountnumberNo0badge on the filter button
onFilterClick() => voidYesopens your filter panel/sheet
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-filter-sort-toolbar/FilterSortToolbar.jsx

Using the Filter & Sort Toolbar component

Install it with velocityx add standard-filter-sort-toolbar. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Navigation.