filter_bar() places search, select, date, and toggle filters in a compact horizontal toolbar with removable active filter chips and URL query sync.
filter_bar()
<ComponentPreview title="Interactive Filter Bar">
{
"type": "filter_bar",
"action": "filter_runs",
"chips": true,
"reset_label": "Reset",
"defaults": {"status": "All", "q": ""},
"children": [
{"type": "select_input", "label": "Status", "options": ["All", "Success", "Failed"], "value": "All", "name": "status"},
{"type": "text_input", "label": "Search", "value": "", "placeholder": "Filter agent runs...", "name": "q"}
]
}
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Parameter | Type | Description |
|---|---|---|
| action, inputs | str, list | Action name and filter input components. |
action
inputs
str
list
| chips, defaults, reset_label | options | Show removable chips for non-default values and a Reset control. |
chips
defaults
reset_label
| method, update_url | options | Set method="get" and update_url=True to keep filters bookmarkable in the URL. |
method
update_url
method="get"
update_url=True