Skip to content

Pagination - Web Component โ€‹

The Pagination component can be used imported from:

Playground โ€‹

Parameters โ€‹

The Web component uses the <z-pagination> tag:

By default, all the parameters are optional or can be set in different, except for the ones marked as required

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescriptionSlotA11y
pages
[required]
numberTotal number of pages
modelnumberCurrent page number
show-edgesbooleanShow first and last page buttons
disabledbooleanBlocks user interaction with the component

Events โ€‹

This component has events. Check the documentation about how to use the events.

NamePayloadDescription
changenumberReturns the new value of the "value" attribute
restartedvoidEmitted on value reset

Slots โ€‹

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription

Parameters use โ€‹

pages โ€‹

The pages parameter is used to set the number of pages that the pagination will have.

model โ€‹

The value parameter is used to set the current page of the pagination.

Flags โ€‹

show-edges โ€‹

The show-edges parameter is used to set the visibility of the first and last pages.

disabled โ€‹

The disabled parameter is used to block the interaction with the component.

Browser support โ€‹

Detected engine: ย 

  • Chromium

  • Webkit

  • Gecko

HTML Examples โ€‹

CodeSandbox example โ€‹