Data toolbar
A searchable table header with scoped filters, status badges, and pagination.
Preview
| Record | Owner | Status |
|---|---|---|
| Invoice AX-1192 | Maris Bello | Ready |
| Contract CL-448 | Ilya Verano | Review |
| Payment PM-207 | Noor Lazo | Failed |
Ingredients
The recipe only uses documented Axie primitives.
AutocompleteSelectTableBadgePagination
Accessibility
- Keep filters in the tab order before the table so keyboard users can narrow results first.
- Expose table headers and status text; badges should reinforce the state, not replace it.
- Use a native combobox pattern for search and a listbox pattern for scoped filters.
Code
code
<div className="grid gap-4"> <div className="grid gap-3 lg:grid-cols-[1fr_210px_auto]"> <Autocomplete options={searchOptions} placeholder="Search table..." /> <Select options={statusOptions} defaultValue="active" /> <Button variant="soft">Export</Button> </div> <Table>{/* records */}</Table> <Pagination>{/* pages */}</Pagination></div>