Filter.Root Events
| Type | Description | |
|---|---|---|
onChange | (state: FilterChangeState) => void | (optional) Called whenever the applied filter state changes. Receives a FilterChangeState object with search and filters. When behavior="manual", this is called immediately for search changes and applied filter removals, while draft panel filter changes are only emitted when the user applies them. |
Filter.Search Events
| Type | Description | |
|---|---|---|
onChange | (value: string) => void | (optional) Called when the search input value changes. Receives the new value string. |
Filter.ActiveFilters Events
| Type | Description | |
|---|---|---|
onRemove | (filterKey: string) => void | (optional) Called when a filter tag is removed by the user. Receives the filterKey of the removed filter. |
Filter.SortButton Events
| Type | Description | |
|---|---|---|
onChange | (event: DrawerListChangeEvent) => void | (optional) Called when the user selects a sort option. Receives the Dropdown change event. |