BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/vengenceui/component-showcase

component-showcase

vengenceui/component-showcase
FreeComponent

vengenceui publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://www.vengenceui.com/r/component-showcase.json

Source

components/ui/component-showcase.tsxwww.vengenceui.com/r/component-showcase.json · first 6 KB
1import * as React from "react";
2import fs from "fs";
3import path from "path";
4import { CodeBlock } from "@/components/ui/code-block";
5import { CopyButton } from "@/components/ui/copy-button";
6import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
7import { ChevronDown, Terminal, WandSparkles, TerminalSquare, PictureInPicture2 } from "lucide-react";
8import { ComponentDocsSections } from "@/components/docs/component-docs-sections";
9import { FullscreenPreview } from "@/components/ui/fullscreen-preview";
10
11interface ComponentShowcaseProps {
12 componentName: string; // The exact filename in the registry (without .tsx)
13 title: string;
14 description: string;
15 slug?: string;
16 children: React.ReactNode; // The live component itself
17}
18
19/**
20 * Read the component source code from the filesystem (server-side only).
21 * Tries multiple candidate directories.
22 * The turbopackIgnore comment prevents Turbopack from tracing the entire project.
23 */
24function readComponentSource(componentName: string): string {
25 const fileName = `${componentName}.tsx`;
26
27 try {
28 const p1 = path.join(process.cwd(), "src", "components", "ui", fileName);
29 if (fs.existsSync(p1)) return fs.readFileSync(p1, "utf8");
30 } catch {}
31
32 try {
33 const p2 = path.join(process.cwd(), "src", "registry", fileName);
34 if (fs.existsSync(p2)) return fs.readFileSync(p2, "utf8");
35 } catch {}
36
37 try {
38 const p3 = path.join(process.cwd(), "src", "components", "docs", fileName);
39 if (fs.existsSync(p3)) return fs.readFileSync(p3, "utf8");
40 } catch {}
41
42 return `// Source code for ${componentName} not found`;
43}
44
45export function ComponentShowcase({
46 componentName,
47 title,
48 description,
49 slug = componentName,
50 children,
51}: ComponentShowcaseProps) {
52 const installCommand = `npx shadcn@latest add @vengeanceui/${componentName}`;
53 const sourceCode = readComponentSource(componentName);
54
55 return (
56 <div className="mb-8 space-y-4">
57 {/* Component Header */}
58 <div id="overview" className="space-y-1 scroll-mt-24">
59 <p className="text-sm font-medium text-neutral-500 dark:text-zinc-500">
60 Components <span className="mx-1 text-neutral-400 dark:text-zinc-700">/</span>
61 <span className="text-neutral-900 dark:text-zinc-200">{title}</span>
62 </p>
63 <h1 className="mb-2 text-3xl font-bold tracking-tight text-neutral-900 dark:text-zinc-100">{title}</h1>
64 <p className="text-neutral-500 dark:text-zinc-400 text-lg">{description}</p>
65// … truncated

What it pulls in

npm packages

  • lucide-react

Files it writes

  • public/r/component-showcase.json

Facts

Registry
vengenceui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on vengenceui www.vengenceui.com Raw registry item This item as JSON

More from vengenceui

All 128 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionvengenceuiComponentsFree2 deps
agent-bento-gridagent-bento-gridvengenceuiComponentsFree1 dep
alertalertvengenceuiComponentsFreeno deps
animated-buttonanimated-buttonvengenceuiComponentsFree1 dep
animated-footeranimated-footervengenceuiComponentsFree2 deps
animated-numberanimated-numbervengenceuiComponentsFree1 dep
animated-raysanimated-raysvengenceuiComponentsFreeno deps
animated-tooltipanimated-tooltipvengenceuiComponentsFree1 dep
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