Search (filter)
A free-text filter. Its value lands in filters[name]; reference it in SQL with
${name}. This is a query filter — for searching across pages, use
SiteSearch instead.
SELECT channel, SUM(downloads) AS downloads
FROM downloads
WHERE '${q}' = '' OR channel ILIKE '%' || '${q}' || '%'
GROUP BY channel
ORDER BY downloads DESC
| Attribute | Purpose |
|---|---|
name |
Required. Filter key (${name} in SQL). |
label |
Accessible label. |
placeholder |
Input placeholder. |
debounce |
Debounce in ms (default 300). |
url_sync |
Mirror to the URL (default true). |
bar |
Lift into the top filter bar (default: inline). |
Like other filter controls, <Search> is stripped from static builds.