Active filters
A strip above a list that shows the filters in use and lets users remove them one by one.
zb:filter-context zubazar/ui-pro
This component is in Zubazar UI Pro; Zubazar UI Pro brings Zubazar UI with it. Installing Zubazar UI Pro →
Basic usage
BLADE
filters is a key => text array; remove adds an X to each chip and clear adds a "Clear all" button.
<zb:filter-context
:filters="['status' => 'Status: Shipped', 'date' => 'October 2026', 'store' => 'Store: Downtown']"
remove="removeFilter"
clear="clearFilters"
:count="1250"
/>
| Prop | Values |
|---|---|
filters | key => text |
remove | The method that removes one filter |
clear | The method that clears them all |
count | Number of results |
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
filters | — | [] | The filters in use: key => text |
remove | — | null | The Livewire method that removes a filter (called with its key) |
clear | — | null | The Livewire method that clears every filter |
count | — | null | The number of results with these filters |
Developer notes
- With no filters it renders nothing; the filters and the methods are the application's.
- The
removemethod is called with the filter's key;countwrites the number of results in the page's number format.