Pagination

<wa-pagination> Experimental Since 2.0

Pagination streamlines navigation through large data sets by segmenting results into pages, reducing cognitive load and improving findability.

Use this default pagination to navigate a large data set with standard page controls and a fixed page size.

<wa-pagination id='page-btn-DIV' total='2120' page-size='20' value='1'></wa-pagination>

Examples

Simple Pagination

Use the simple variant for compact views where you only need basic next/previous navigation.

<wa-pagination id='page-btn-DIV2' total='2120' page-size='20' value='1' simple></wa-pagination>

Empty Pagination

Use the simple variant for compact views where you only need basic next/previous navigation.

<wa-pagination id='page-btn-DIV2' total='0' page-size='20' value='1' simple></wa-pagination>

Full Pagination

Use the full variant when users must jump to first/last pages and adjust page size in enterprise workflows.

<wa-pagination id='page-btn-DIV3' total='2120' page-size='20' value='1' show-first show-last show-size-change show-page-change></wa-pagination>

Importing

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/webawesome@0.14.0/components/pagination/pagination.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/pagination/pagination.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/pagination/pagination.js';

To import this component for React 18 or below, use the following code:

import WaPagination from '@awesome.me/webawesome/dist/react/pagination/index.js';

Slots

Learn more about using slots.

Attributes & Properties

Learn more about attributes and properties.

Events

Learn more about events.

CSS parts

Learn more about CSS parts.

Dependencies

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

Need a hand? Report a bug Ask for help
    No results