Filter Bar
A UI SDK Toolbar of filters with one tab stop and arrow keys, a search field inside it, labelled fields aligned on their bottom edge, and a reset button that shows while filters apply.
Example
5 of 5 projects: Apollo, Borealis, Cygnus, Draco, Eridanus
filter-bar-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
FilterBar
| Prop | Type | Default |
|---|---|---|
labelrequired | string | – |
children | ReactNode | – |
isFiltered | boolean | false |
onReset | (event: MouseEvent) => void | – |
resetLabel | string | "Reset filters" |
Also takes every prop of UI SDK Toolbar except aria-label, children.
FilterBarButton
Takes every prop of UI SDK ToolbarButton except aria-label, ButtonLookProps.
FilterBarSeparator
FilterBarSearch
| Prop | Type | Default |
|---|---|---|
labelrequired | string | – |
Also takes Input except aria-label, type.
FilterBarField
| Prop | Type | Default |
|---|---|---|
labelrequiredThe visible label above the control. | ReactNode | – |
childrenrequired | ReactNode | – |
Also takes Field except children.
Other exports
createToolbarControllertype FilterBarButtonPropstype FilterBarFieldPropstype FilterBarPropstype FilterBarSearchPropsAccessibility
- A toolbar of filters with one tab stop and arrow keys; reset appears only when something is filtered.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.