BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/vanillasky/codeEditor

Code Editor

vanillasky/codeEditor
FreeBlock

Developer product, API, SDK, config, codebase, tests, or code-focused workflow where a short synthetic code sample explains the product mechanism. Prefer over generic brand/card scenes when code is a core input signal.

See it running

Open the demo on vanillasky

vanillasky.ai/docs/components/codeEditor
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://vanillasky.ai/r/codeEditor.json

Source

src/lib/scene-templates/showcase-code.tsxvanillasky.ai/r/codeEditor.json
1/**
2 * showcase-code — code editor window with syntax-highlighted snippet.
3 *
4 * macOS-style editor frame with traffic-light dots and filename in
5 * the title bar. Code lines appear with staggered fade-in. Simple
6 * syntax coloring for keywords, strings, comments, and numbers.
7 * Same frame style as showcase-terminal.
8 *
9 * The editor frame itself lives in the CodeEditor primitive
10 * (src/lib/primitives/devices/CodeEditor.tsx) — shared with vibecoded
11 * scenes. It owns shrink-to-fit + ellipsis for long lines so code never
12 * clips mid-token at the frame edge.
13 */
14
15import React from "react";
16import type { VariableField } from "../video-config";
17import type { SceneTemplateProps } from "./types";
18import { resolveTokens } from "../theme";
19import { TemplateText } from "./template-text";
20import { CodeEditor } from "../primitives/devices/CodeEditor";
21import { SceneBackground, mediaBackgroundDefaults, mediaBackgroundSchemaFields } from "./scene-background";
22
23export const showcaseCodeSchema: Record<string, VariableField> = {
24 texts: {
25 type: "string",
26 label: "Text",
27 default: "Simple as this.",
28 required: true,
29 description: "Title text shown on the scene",
30 },
31 code: {
32 type: "string",
33 label: "Code",
34 default: 'import { create } from "vanillasky";\n\nconst video = await create({\n prompt: "Launch trailer",\n style: "cinematic",\n});\n\nconsole.log(video.url);',
35 required: true,
36 description: "Code snippet — use \\n for line breaks",
37 },
38 filename: {
39 type: "string",
40 label: "Filename",
41 default: "app.ts",
42 description: "Filename shown in the editor title bar",
43 },
44 ...mediaBackgroundSchemaFields,
45 textColor: {
46 type: "color",
47 label: "Text color",
48 default: "",
49 description: "Override text color (leave empty for auto)",
50 },
51};
52
53export const showcaseCodeDefaults: Record<string, unknown> = {
54 texts: "Simple as this.",
55 code: 'import { create } from "vanillasky";\n\nconst video = await create({\n prompt: "Launch trailer",\n style: "cinematic",\n});\n\nconsole.log(video.url);',
56 filename: "app.ts",
57 ...mediaBackgroundDefaults,
58 textColor: "",
59};
60
61export const ShowcaseCodeTemplate: React.FC<SceneTemplateProps> = ({
62 variables,
63 style,
64 progress,
65 beatIntensity,
66 width,
67 height,
68 safeZone,
69 sceneDuration,
70 backgroundEffect,
71 isPlaying = true,
72}) => {
73 const { accent, content, font } = resolveTokens(style);
74 const textColor = String(variables.textColor || "") || content;
75// … truncated

What it pulls in

npm packages

  • react

Other registry items

  • @vanillasky/backgrounds
  • @vanillasky/motion
  • @vanillasky/theme
  • @vanillasky/typography
  • @vanillasky/video-config

Files it writes

  • src/lib/scene-templates/showcase-code.tsx
  • src/lib/scene-templates/scene-background.tsx
  • src/lib/primitives/devices/CodeEditor.tsx
  • src/lib/scene-templates/template-text.tsx
  • src/lib/emoji/index.tsx
  • src/lib/emoji/emoji-text.tsx
  • src/lib/scene-templates/types.ts

Facts

Registry
vanillasky
Type
registry:block
Access
Free
Files written
7
Licence
MIT
First indexed
2026-08-08
Last confirmed
3 days ago

Go to the source

Docs on vanillasky vanillasky.ai VanillaSkyAi/skills on GitHub Raw registry item This item as JSON

More from vanillasky

All 33 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Bar ChartbarChartvanillaskyBlocksFree1 dep · 8 files
Before AfterbeforeAftervanillaskyBlocksFree1 dep · 7 files
Big NumberbigNumbervanillaskyBlocksFree1 dep · 8 files
Brand MessagebrandMessagevanillaskyBlocksFree1 dep · 6 files
Card ListcardListvanillaskyBlocksFree1 dep · 8 files
Chat MessengerchatMessengervanillaskyBlocksFree1 dep · 6 files
Chat WhatsappchatWhatsappvanillaskyBlocksFree1 dep · 6 files
ConfetticonfettivanillaskyBlocksFree1 dep · 6 files
BlockDex

Built by

Kynth Studios

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 Studios

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 Studios

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