Documentation
Design
Components
Pagination

EccUtilsDesignPagination Component

2.0.0-alpha.6
<ecc-utils-design-pagination/>
EccUtilsDesignPagination

Overview

The ecc-utils-design-pagination component provides a set of components to build custom pagination controls. It is a compound component, giving you full control over the layout and behavior of your pagination interface.

This component is unopinionated and provides the building blocks. You are responsible for implementing the state management and logic for page changes.

Usage

Basic Pagination

This example shows a typical pagination layout with previous/next buttons, page numbers, and an ellipsis.

123

Components

ComponentTag NameDescription
Paginationecc-utils-design-paginationThe root container for pagination.
PaginationContentecc-utils-design-pagination-contentA container for the pagination items.
PaginationItemecc-utils-design-pagination-itemA list item for pagination elements.
PaginationLinkecc-utils-design-pagination-linkA link for a specific page number.
PaginationPreviousecc-utils-design-pagination-previousA button to navigate to the previous page.
PaginationNextecc-utils-design-pagination-nextA button to navigate to the next page.
PaginationEllipsisecc-utils-design-pagination-ellipsisA separator indicating omitted page numbers.

Properties

EccUtilsDesignPaginationLink

PropertyTypeDefaultDescription
isActivebooleanfalseWhen true, styles the link as active.
sizestringiconThe size of the link button.
hrefstring#The URL the link points to.

isActive

Visually indicates which page is currently active by applying active styling.

<EccUtilsDesignPaginationLink isActive={true}>2</EccUtilsDesignPaginationLink>

size

Controls the size of the pagination link button.

<EccUtilsDesignPaginationLink size="default">1</EccUtilsDesignPaginationLink>

href

The URL that the pagination link points to. Useful for server-side pagination.

<EccUtilsDesignPaginationLink href="/page/2">2</EccUtilsDesignPaginationLink>

EccUtilsDesignPaginationPrevious & EccUtilsDesignPaginationNext

PropertyTypeDefaultDescription
disabledbooleanfalseWhen true, disables the button.

disabled

When true, disables the previous/next button, typically used when at the first or last page.

<EccUtilsDesignPaginationPrevious disabled={true} />
<EccUtilsDesignPaginationNext disabled={true} />

Events

The PaginationLink, PaginationPrevious, and PaginationNext components emit an ecc-button-clicked event when clicked. You can use this to handle page navigation.

Event NameReact Event NameDetail TypeDescription
ecc-button-clickedonEccButtonClicked{ variant: string }Fired when a pagination button is clicked.

ecc-button-clicked

Fires when a user clicks on a pagination control. The variant in the event detail will be link, previous, or next.

<EccUtilsDesignPaginationNext 
  onEccButtonClicked={(event) => {
    console.log('Next button clicked');
  }}
/>
Elixir Cloud & AAICloud SDKElixir

Released under Apache 2.0 License.

Copyright © 2023-2025 ELIXIR