Skip to content

Components Navigation

Pagination

Links to the pages of a list.

$ pyblade ui:add pagination

Page 4 of 10

Props

Written as attributes of <pb-ui.pagination>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.

NameTypeDefaultDescription
page int 1 The current page
pages int 1 How many there are
url str "?page=" What the number of a page is added to
class str "" Added to the classes of the component. Every other attribute is spread on it too.