Pagination

<wa-pagination> Since 2.0 experimental

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

Autoloading components via projects is the recommended way to import components. If you prefer to do it manually, use one of the following code snippets.

CDN npm React

Let your project code do the work! Sign up for free to use a project with your very own CDN — it's the fastest and easiest way to use Web Awesome.

To manually import this component from NPM, use the following code.

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

To manually import this component from React, use the following code.

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

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