Toolbar Filter Bar
Every admin list page needs the same composition: search on the left, filter dropdowns in the middle, action buttons on the right. The <x-wirekit:: primitive owns the responsive layout; you fill the slots with whatever inputs the page needs.
Recipe
Variations
- Bulk-action toolbar: When rows are selected, swap the right-side button for
<x-wirekit::with bulk actions (Archive selected, Delete, Export). Userow> x-show="selectedto toggle.Count > 0" - Tabbed list: Add
<x-wirekit::above the toolbar for status views (Open/Pending/Solved); the toolbar's filter selects then narrow within the active tab.tabs> - Density: Pass
density="compact"to<x-wirekit::for reduced vertical padding when stacked above a dense data table.toolbar>
Components Used
- Toolbar —
aria-label,density,alignprops - Row — flex grouping inside the toolbar
- Input — search field with
wire:model.live. debounce - Select — filter dropdowns
- Button — primary action