Sépale
Components Docs Theme generator Prefix About GitHub npm
  • Family
  • Family
  • Theme

  • Guide
  • Getting started
  • Families and themes
  • Components and classes
  • Svelte components
  • Motion
  • Your own styles
  • Class prefix
  • Family
  • Description
  • Theme generator
  • Components
  • All components
    • Button
    • Link
    • Join
    • Input
    • Textarea
    • Select
    • Combobox
    • Number input
    • Date picker
    • Calendar
    • Color picker
    • File input
    • File dropzone
    • Checkbox
    • Radio
    • Toggle
    • Switch
    • Range
    • Rating
    • Chips input
    • Editable
    • Label
    • Floating label
    • Fieldset
    • Validator
    • Text
    • Avatar
    • Badge
    • Chip
    • Swatch
    • Bubble
    • Card
    • Stat
    • Carousel
    • Alert
    • Toast
    • Loading
    • Progress
    • Radial progress
    • Skeleton
    • Empty state
    • Data handler
    • Data control
    • Table
    • Grid
    • List
    • Kanban
    • File explorer
    • Menu
    • Tabs
    • Breadcrumbs
    • Steps
    • Pagination
    • Dock
    • Navbar
    • Sidebar
    • Drawer
    • Footer
    • Hero
    • Divider
    • Collapse
    • Accordion
    • Dialog
    • Dropdown
    • Tooltip
    • Mobile frame
    • Window frame
    • Laptop frame

Pagination

A row of pages to jump between, with previous / next. The current page is marked by `aria-current="page"`, not by a class. With `edges`, the first and last pages stay and far ones fold into a gap. Three variants draw the same pages differently: dots, bars, count.

ClassEffectType
.pagination
A row of pages to jump between, with previous / next. The current page is marked by `aria-current="page"`, not by a class. With `edges`, the first and last pages stay and far ones fold into a gap. Three variants draw the same pages differently: dots, bars, count. root
.pagination-dots.pagination-bars.pagination-count
Sets variant, one class per value.
  • .pagination-bars A segment per page, stretched across the row.
  • .pagination-count No page drawn: “3 / 8” between previous and next.
  • .pagination-dots A dot per page instead of its number — as under a carousel.
axis variant
.pagination-primary.pagination-neutral.pagination-info.pagination-success.pagination-warning.pagination-error
Sets color, one class per value. axis color
.pagination-xs.pagination-sm.pagination-md.pagination-lg.pagination-xl
Sets size, one class per value. axis size
.pagination-gap
The “…” standing for pages that are not drawn. part
.pagination-item
One page, or a previous / next control. part
.pagination-number
The number inside a page; a new one on every change, so a family can animate it. The row carries `data-direction="next | previous"` after a move. part
.pagination-text
The “3 / 8” of the count variant. part