Light Dark System

Paginate

<p-paginate> | PPaginate
Since 1.0 stable

Paginate represent actions that are available to the user.

<p-paginate></p-paginate>
import PPaginate from 'pure-uikit/dist/react/p-paginate';

const App = () => <PPaginate />;

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

Script Import Bundler React

To import this component from the CDN using a script tag:

<script type="module" src="https://cdn.jsdelivr.net/npm/pure-uikit@1.2.15/cdn/components/paginate/paginate.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://cdn.jsdelivr.net/npm/pure-uikit@1.2.15/cdn/components/paginate/paginate.js';

To import this component using a bundler:

import 'pure-uikit/dist/components/paginate/paginate.js';

To import this component as a React component:

import PPaginate from 'pure-uikit/dist/react/paginate';

Slots

Name Description
prefix A presentational prefix icon or similar element.
suffix A presentational suffix icon or similar element.

Learn more about using slots.

Properties

Name Description Reflects Type Default
variant The button’s theme variant. "default" | "primary" | "success" | "neutral" | "warning" | "danger" | "text" "default"
size The button’s size. "small" | "medium" | "large" "medium"
disabled Disables the button. boolean false
pill Draws a pill-style button with rounded edges. boolean false
total The total items to paginate. number 119
page The current page. number 1
limit The limit items in a page. number 12
maxVisiblePages
max-visible-pages
The limit visible pages to show. number 3
updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties.

Events

Name React Event Description Event Detail
p-change onPChange Emitted when the page changed. -

Learn more about events.

Parts

Name Description
prefix The container that wraps the prefix.
suffix The container that wraps the suffix.

Learn more about customizing CSS parts.

Dependencies

This component automatically imports the following dependencies.

  • <p-button>
  • <p-icon>
  • <p-spinner>