Filter toolbar
A search field and filter menus with result counts, for narrowing a list.
4 of 4 projects
- Atlas platformPlatformActive
- Harbour redesignDesignIn review
- Release notesGrowthActive
- WayfinderPlatformPaused
When to use
- Directories and tables with a few categorical filters.
- You want an accessible count of matching results.
When not to use
- The list is short enough to scan.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/filter-toolbar
Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
FilterToolbar
12 props
PropTypeDefaultDescription
label *string—
query *string—
onQueryChange *(query: string) => void—
placeholderstring"Search"
filters *readonly FilterDefinition[]—
value *FilterValue—
onValueChange *(value: FilterValue) => void—
resultCountnumber—
totalCountnumber—
nounstring"results"
childrenReactNode—Extra actions aligned to the end, such as an export button.
classNamestring—
countOptions
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- Enter or Space
- Opens the menu from its trigger and activates the focused item.
- ↓ or ↑
- Moves between items, wrapping at the ends; disabled items are skipped.
- → or ←
- Opens and closes a submenu.
- Escape
- Closes the menu and returns focus to the trigger.
- A–Z
- Moves to the next item that starts with that letter.
Accessibility
It exposes search and status semantics, with aria-label, aria-hidden and aria-live kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/filter-toolbar.mdThe index of every part is at /llms.txt.