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::toolbar> primitive owns the responsive layout; you fill the slots with whatever inputs the page needs.
Recipe
Admin list toolbar
Variations
- Bulk-action toolbar: When rows are selected, swap the right-side button for
<x-wirekit::row>with bulk actions (Archive selected, Delete, Export). Usex-show="selectedCount > 0"to toggle. - Tabbed list: Add
<x-wirekit::tabs>above the toolbar for status views (Open/Pending/Solved); the toolbar's filter selects then narrow within the active tab. - Density: Pass
density="compact"to<x-wirekit::toolbar>for reduced vertical padding when stacked above a dense data table.
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