BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-solidjs/pagination

pagination

shadcn-solidjs/pagination
FreeComponent

shadcn-solidjs publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://shadcn-solidjs.com/r/pagination.json

Source

src/registry/ui/pagination.tsxshadcn-solidjs.com/r/pagination.json
1import * as PaginationPrimitive from "@kobalte/core/pagination";
2import type { PolymorphicProps } from "@kobalte/core/polymorphic";
3
4import { cn } from "~/lib/utils.ts";
5import IconChevronLeft from "~icons/lucide/chevron-left";
6import IconChevronRight from "~icons/lucide/chevron-right";
7import IconEllipsis from "~icons/lucide/ellipsis";
8import type { JSX, ValidComponent } from "solid-js";
9
10import { children, Show, splitProps } from "solid-js";
11import type { ButtonProps } from "./button.tsx";
12import { buttonVariants } from "./button.tsx";
13
14const PaginationItems = PaginationPrimitive.Items;
15
16type PaginationRootProps<T extends ValidComponent = "nav"> =
17 & PaginationPrimitive.PaginationRootProps<T>
18 & { class?: string | undefined };
19
20const Pagination = <T extends ValidComponent = "nav">(
21 props: PolymorphicProps<T, PaginationRootProps<T>>,
22) => {
23 const [local, others] = splitProps(props as PaginationRootProps, ["class"]);
24 return (
25 <PaginationPrimitive.Root
26 role="navigation"
27 aria-label="pagination"
28 data-slot="pagination"
29 class={cn(
30 "[&>ul]:gap-0.5 mx-auto flex w-full justify-center",
31 // Kobalte renders the list itself, so the `pagination-content` styles
32 // are applied from here.
33 "[&>ul]:gap-0.5 [&>ul]:flex [&>ul]:items-center",
34 local.class,
35 )}
36 {...others}
37 />
38 );
39};
40
41type PaginationItemProps<T extends ValidComponent = "button"> =
42 & PaginationPrimitive.PaginationItemProps<T>
43 & {
44 class?: string | undefined;
45 size?: ButtonProps["size"];
46 };
47
48const PaginationItem = <T extends ValidComponent = "button">(
49 props: PolymorphicProps<T, PaginationItemProps<T>>,
50) => {
51 const [local, others] = splitProps(props as PaginationItemProps, [
52 "class",
53 "size",
54 ]);
55 return (
56 <PaginationPrimitive.Item
57 data-slot="pagination-link"
58 class={cn(
59 buttonVariants({
60 variant: "ghost",
61 size: local.size ?? "icon",
62 }),
63 // Kobalte marks the current page with `data-current`, so the outline
64 // variant is applied from here instead of swapping variants.
65 "dark:data-[current]:border-input dark:data-[current]:bg-input/30 dark:data-[current]:hover:bg-input/50 data-[current]:border-border data-[current]:bg-background data-[current]:hover:bg-muted",
66 local.class,
67 )}
68 {...others}
69 />
70 );
71};
72
73type PaginationEllipsisProps<T extends ValidComponent = "div"> =
74// … truncated

What it pulls in

npm packages

  • @kobalte/core

Other registry items

  • button

Facts

Registry
shadcn-solidjs
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-16
Last confirmed
today

Go to the source

Docs on shadcn-solidjs shadcn-solidjs.com ptzburn/shadcn-solidjs on GitHub Raw registry item This item as JSON

More from shadcn-solidjs

All 85 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn-solidjsComponentsFree1 dep
alertalertshadcn-solidjsComponentsFree2 deps
alert-dialogalert-dialogshadcn-solidjsComponentsFree2 deps
aspect-ratioaspect-ratioshadcn-solidjsComponentsFreeno deps
attachmentattachmentshadcn-solidjsComponentsFree2 deps
avataravatarshadcn-solidjsComponentsFree1 dep
badgebadgeshadcn-solidjsComponentsFree2 deps
breadcrumbbreadcrumbshadcn-solidjsComponentsFree1 dep

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