List Patterns

← Overview

Search

A search input with hx-trigger="input changed delay:400ms" debounces keystrokes and replaces the table fragment.

Filter

Dropdown + checkbox filters submit via hx-get on change, replacing only the table container.

Sort Columns

Column headers are links that append ?sort=col&dir=asc/desc and toggle direction on re-click.

Name ↑Category ⇅Price ⇅Actions
← live rows from /demo/inventory

Pagination (next / prev)

Numbered page links and previous/next controls replace the table fragment inline. This is a live demo — click the buttons to paginate through 47 dummy items.

#NameCategory
1Item 1Electronics
2Item 2Clothing
3Item 3Food
4Item 4Books
5Item 5Electronics

Search

GET …?q=term

FilterBar SearchField — debounced hx-trigger.

Filter

GET …?category=X&active=1

FilterBar SelectField / CheckboxField / RangeField.

Sort

GET …?sort=col&dir=asc

SortableCol builds toggle links with current dir indicator.

Next / Prev

GET …?page=N

PaginationBar renders numbered links with hx-include.