ns-ui

Pagination Dog Ear

A pagination control rendered as book folios — paper cards for each page number, a raised current page, and a CSS corner dog-ear that curls further as you hover prev/next to peek the destination number, leaving a small permanent crease on every page you've visited.

Use when paged results where the pages should read as a physical set the reader is moving through, hovering prev or next curling a corner to peek the destination number and every visited page keeping a permanent crease; pick breadcrumb-fold or breadcrumb-overflow-menu instead when the navigation is a hierarchy rather than a flat ordered sequence, since a dog-ear encodes visited-ness and adjacency and a hierarchy has neither.

Install

npx shadcn add https://design.helpmarq.com/r/pagination-dog-ear.json
  • pagination
  • navigation
  • nav
  • dog-ear
  • aria-current
  • roving-tabindex
  • book

ns-ui / pagination-dog-ear

Table of contents
  • Cover letter
  • Table of contents

Hover next/prev to peek the corner curl on the current page; visited pages keep a small permanent crease.

Props

PropTypeDefaultDescription
pagenumberCurrent page, 1-indexed.
countnumberTotal number of pages.
onChange(page: number) => void
className?string