Pagination
Split a long list, such as search results or products, into pages people can navigate.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
Current page | Integer | 1 | Identify the current page out of the four example pages. |
aria-current | ARIA token | page on the active button | Mark the current page for assistive technologies. |
States
| State | Trigger | Result |
|---|---|---|
changed | Choose a page or use an arrow button. | The current page and its button styling move together. |
boundary | Reach the first or last page. | The unavailable direction is disabled. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-on-accent | color | #ffffff | Foreground on the accent background. |
--q-border-width | length | 1px | Thickness of the outline. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-duration | time | 175ms | Duration of visual state transitions. |
--q-space | length | 4px | Base unit for gaps and padding. |