The link Clear renders, for a router link (capsomer/react/link Link); a plain a otherwise.
onSubmit
(e: FormEvent<HTMLFormElement>) => void
For an app whose router is not React Router (a wouter SPA): handle the submit yourself, read the fields with new FormData(e.currentTarget) and navigate. Call e.preventDefault().
path with params as its query, leaving out empty values and any value equal to its default (defaults), so the address stays short and one view has one address.
Submits form after typing stops in a text field, at once when a select, a checkbox or a radio changes. While an IME is composing ("ni hao" before it becomes 你好) nothing is sent; the end of the composition counts as typing. Returns the function that detaches.
enhance
(root?: ParentNode): () => void
Attaches liveSubmit to every form[data-cap="filter-bar"][data-live] under root.
Parts and data attributes
Class
Is
.cap-filter-bar
the root
.cap-filter-bar-actions
a part
.cap-filter-bar-count
a part
.cap-filter-bar-fields
a part
Accessibility
Key
Does
Tab
Through the fields, Apply, Clear
Enter in a field
Applies
A search landmark with a name; each field has its label; the count is announced politely.
Screen readers: no manual NVDA or VoiceOver run, by decision (2026-11-07); the automated browser checks and a front-end review stand in. Automated: see the site's Tests page.