BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/jolyui/ui/code-block-tabs-demo

code-block-tabs-demo

jolyui-ui/code-block-tabs-demo
FreeExample

jolyui/ui publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://jolyui.dev/r/code-block-tabs-demo.json

Source

examples/code-block-tabs-demo.tsxjolyui.dev/r/code-block-tabs-demo.json
1import { FileJson, FileType } from "lucide-react";
2import { CodeTabs } from "@/registry/default/ui/code-block";
3
4const tsCode = `interface User {
5 id: number;
6 name: string;
7 email: string;
8}`;
9
10const jsonCode = `{
11 "id": 1,
12 "name": "John Doe",
13 "email": "john@example.com"
14}`;
15
16export default function CodeBlockTabsDemo() {
17 return (
18 <div className="w-full max-w-3xl">
19 <CodeTabs
20 tabs={[
21 {
22 label: "types.ts",
23 code: tsCode,
24 language: "typescript",
25 icon: <FileType className="h-4 w-4" />,
26 },
27 {
28 label: "data.json",
29 code: jsonCode,
30 language: "json",
31 icon: <FileJson className="h-4 w-4" />,
32 },
33 ]}
34 />
35 </div>
36 );
37}

What it pulls in

Other registry items

  • code-block

Files it writes

  • examples/code-block-tabs-demo.tsx

Facts

Registry
jolyui/ui
Type
registry:example
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on jolyui/ui jolyui.dev Johuniq/jolyui on GitHub Raw registry item This item as JSON

More from jolyui/ui

All 199 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-prompt-box-demoai-prompt-box-demojolyui/uiExamplesFreeno deps
ai-prompt-box-loading-demoai-prompt-box-loading-demojolyui/uiExamplesFreeno deps
animated-beam-bidirectional-demoanimated-beam-bidirectional-demojolyui/uiExamplesFree1 dep
animated-beam-curved-demoanimated-beam-curved-demojolyui/uiExamplesFree1 dep
animated-beam-demoanimated-beam-demojolyui/uiExamplesFree1 dep
animated-beam-multiple-demoanimated-beam-multiple-demojolyui/uiExamplesFree1 dep
animated-table-basic-demoanimated-table-basic-demojolyui/uiExamplesFreeno deps
animated-table-column-demoanimated-table-column-demojolyui/uiExamplesFreeno 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