BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/pagination

Pagination

octane/pagination
FreeComponent

octane publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by octane on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/pagination.json

Source

ui/pagination.tsrxraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/pagination.json
1// Base UI base pagination — TRANSCRIBED from upstream's `bases/base-ui/ui/pagination.tsx`
2// (maintainer-supplied), class strings verbatim. There is no pagination primitive in any base;
3// the family is host elements plus button styling, and the only base-specific question is how the
4// link acquires that styling.
5//
6// THE LINK GOES THROUGH `Button`, NOT THROUGH `buttonVariants`. The radix base writes
7// `<Button asChild><a/></Button>`, where Slot is a pure prop-merger that layers no button
8// semantics onto the anchor. Base UI has no Slot, so upstream uses the `render` prop plus
9// `nativeButton={false}` — the documented escape for "this Button is not a native `<button>`".
10//
11// THE TWO BASES THEREFORE DIVERGE OBSERVABLY, and that is upstream's call, not a porting bug:
12// this base's links carry `role="button"` and `tabindex="0"` (verified by rendering) where the
13// radix base's carry neither. `nativeButton={false}` is what keeps keyboard activation working on
14// a non-button element, which is the trade upstream chose. Do not "fix" this toward radix by
15// dropping Button for a bare `buttonVariants()` anchor: it diverges from the source, and it also
16// drops the key handling Base UI attaches.
17//
18// Octane adaptations: lucide-react → @octanejs/lucide, and children are passed explicitly rather
19// than riding along in the props spread — React's `ComponentProps<"a">` carries `children`, octane
20// routes it through its own channel.
21import { createElement, type OctaneNode } from 'octane';
22import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from '@octanejs/lucide';
23
24import { cn } from '@/lib/utils';
25import { Button, type ButtonProps } from '@/components/ui/button';
26
27type Props = { className?: string } & Record<string, unknown>;
28
29export function Pagination({ className, ...props }: Props) @{
30 <nav
31 role="navigation"
32 aria-label="pagination"
33 data-slot="pagination"
34 className={cn('mx-auto flex w-full justify-center', className)}
35 {...props}
36 />
37}
38
39export function PaginationContent({ className, ...props }: Props) @{
40 <ul
41 data-slot="pagination-content"
42 className={cn('flex items-center gap-0.5', className)}
43 {...props}
44 />
45}
46
47export function PaginationItem(props: Record<string, unknown>) @{
48 <li data-slot="pagination-item" {...props} />
49}
50
51export interface PaginationLinkProps extends Record<string, unknown> {
52 className?: string;
53 isActive?: boolean;
54 size?: ButtonProps['size'];
55 children?: OctaneNode;
56}
57
58// … truncated

What it pulls in

npm packages

  • @octanejs/lucide@0.1.32

Other registry items

  • @octane/button
  • @octane/utils

Files it writes

  • ui/pagination.tsrx

Facts

Registry
octane
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-11
Last confirmed
yesterday

Go to the source

Docs on octane octanejs.dev octanejs/octane on GitHub Raw registry item This item as JSON

More from octane

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionoctaneComponentsFree2 deps
AlertalertoctaneComponentsFree1 dep
Alert Dialogalert-dialogoctaneComponentsFree1 dep
Aspect Ratioaspect-ratiooctaneComponentsFreeno deps
AvataravataroctaneComponentsFree1 dep
BadgebadgeoctaneComponentsFree1 dep
BreadcrumbbreadcrumboctaneComponentsFree1 dep
ButtonbuttonoctaneComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex