Pagination

Usage

The current page gets a border. Mark it with aria-current="page". A skipped range is a span.

Compact, with the current page marked

For under a table or inside a card. Icon-only links need an aria-label. Mark unavailable links with aria-disabled="true".

Attributes

Attribute / element Values Description
.pagination nav Add aria-label="Pagination"
ul > li child One page each, in a row that wraps when narrow
a in li Link to that page. Can hold an .icon. Icon-only links need an aria-label.
span in li Skipped range (…), gray. Add aria-hidden="true".
aria-current page Current page: bordered, solid in sm
aria-disabled true Unavailable link, such as Previous on the first page (no href)
data-size unset (default) 36px, borderless · sm 28px, every page bordered Size, compact style