BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/eldoraui/github-inline-comments-demo

github-inline-comments-demo

eldoraui/github-inline-comments-demo
FreeExample

Example showing a github-inline-comments-demo component.

Live preview

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

Install it

npx shadcn@latest add https://eldoraui.site/r/github-inline-comments-demo.json

Source

registry/example/github-inline-comments-demo.tsxeldoraui.site/r/github-inline-comments-demo.json
1"use client"
2
3import GithubInlineComments from "@/registry/eldoraui/github-inline-comments"
4
5export default function GithubInlineCommentsDemo() {
6 return (
7 <div className="mx-auto max-w-4xl p-4">
8 <p className="text-muted-foreground mb-4 text-sm">
9 This is a GitHub-style inline diff comments component. Hover over a line
10 in the diff to reveal the &quot;Add comment&quot; button, then click to
11 open a compact inline thread for discussion—just like reviewing code on
12 GitHub.
13 </p>
14 <GithubInlineComments
15 fileName="src/server.ts"
16 diff={[
17 { kind: "hunk", content: "@@ -10,8 +10,10 @@" },
18 {
19 kind: "context",
20 old: 10,
21 new: 10,
22 content: "export async function getUserName(id: string) {",
23 },
24 {
25 kind: "context",
26 old: 11,
27 new: 11,
28 content: " // Fetch user from cache or database",
29 },
30 {
31 kind: "del",
32 old: 12,
33 new: null,
34 content: " const user = cache.get(id)",
35 },
36 {
37 kind: "add",
38 old: null,
39 new: 12,
40 content: " let user = cache.get(id)",
41 },
42 { kind: "context", old: 13, new: 13, content: " if (!user) {" },
43 {
44 kind: "add",
45 old: null,
46 new: 14,
47 content: " user = await db.users.findById(id)",
48 },
49 {
50 kind: "add",
51 old: null,
52 new: 15,
53 content: " if (user) cache.set(id, user)",
54 },
55 { kind: "context", old: 14, new: 16, content: " }" },
56 { kind: "del", old: 15, new: null, content: " return user?.name" },
57 {
58 kind: "add",
59 old: null,
60 new: 17,
61 content: " return user?.name ?? '(unknown)'",
62 },
63 { kind: "context", old: 16, new: 18, content: "}" },
64 ]}
65 />
66 </div>
67 )
68}

What it pulls in

Other registry items

  • @eldoraui/github-inline-comments

Files it writes

  • registry/example/github-inline-comments-demo.tsx

Facts

Registry
eldoraui
Type
registry:example
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on eldoraui eldoraui.site karthikmudunuri/eldoraui on GitHub Raw registry item This item as JSON

More from eldoraui

All 115 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
animated-badge-demoanimated-badge-demoeldorauiExamplesFreeno deps
animated-frameworks-demoanimated-frameworks-demoeldorauiExamplesFreeno deps
animated-grid-pattern-demoanimated-grid-pattern-demoeldorauiExamplesFreeno deps
animated-list-demoanimated-list-demoeldorauiExamplesFreeno deps
animated-shiny-button-demoanimated-shiny-button-demoeldorauiExamplesFreeno deps
blur-in-text-demoblur-in-text-demoeldorauiExamplesFreeno deps
browser-demobrowser-demoeldorauiExamplesFreeno deps
browser-demo-2browser-demo-2eldorauiExamplesFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex