BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/framecn/chat-to-preview-layout

Chat to Preview Layout

framecn/chat-to-preview-layout
FreeComponent

Two-column layout where chat shrinks and preview expands.

Install it

npx shadcn@latest add https://framecn.dev/r/chat-to-preview-layout.json

Source

registry/bases/editframe/components/chat-to-preview-layout/index.tsxframecn.dev/r/chat-to-preview-layout.json · first 6 KB
1"use client";
2
3import { Timegroup } from "@editframe/react";
4import type { ReactNode, CSSProperties } from "react";
5
6const FONT_FAMILY =
7 "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
8
9const DefaultChat = () => {
10 const messages = [
11 { from: "user", text: "Build me a landing page" },
12 { from: "ai", text: "Sure — what should it feature?" },
13 { from: "user", text: "Hero, pricing, footer." },
14 { from: "ai", text: "On it. Generating now..." },
15 ];
16 return (
17 <div
18 style={{
19 background: "#111",
20 display: "flex",
21 flexDirection: "column",
22 fontFamily: FONT_FAMILY,
23 gap: 12,
24 inset: 0,
25 padding: 24,
26 position: "absolute",
27 }}
28 >
29 <div
30 style={{
31 color: "#888",
32 fontSize: 12,
33 fontWeight: 600,
34 letterSpacing: "0.08em",
35 marginBottom: 8,
36 textTransform: "uppercase",
37 }}
38 >
39 Chat
40 </div>
41 {messages.map((m, i) => (
42 <div
43 key={i}
44 style={{
45 alignSelf: m.from === "user" ? "flex-end" : "flex-start",
46 background: m.from === "user" ? "#0ea5e9" : "#262626",
47 borderRadius: 14,
48 color: "white",
49 fontSize: 14,
50 maxWidth: "85%",
51 padding: "10px 14px",
52 }}
53 >
54 {m.text}
55 </div>
56 ))}
57 </div>
58 );
59};
60
61const DefaultPreview = () => (
62 <div
63 style={{
64 background: "white",
65 display: "flex",
66 flexDirection: "column",
67 fontFamily: FONT_FAMILY,
68 inset: 0,
69 position: "absolute",
70 }}
71 >
72 <div
73 style={{
74 alignItems: "center",
75 background: "#f4f4f5",
76 borderBottom: "1px solid #e4e4e7",
77 display: "flex",
78 gap: 6,
79 height: 36,
80 padding: "0 12px",
81 }}
82 >
83 <div
84 style={{
85 background: "#ef4444",
86 borderRadius: 999,
87 height: 10,
88 width: 10,
89 }}
90 />
91 <div
92 style={{
93 background: "#f59e0b",
94 borderRadius: 999,
95 height: 10,
96 width: 10,
97 }}
98 />
99 <div
100 style={{
101 background: "#22c55e",
102 borderRadius: 999,
103 height: 10,
104 width: 10,
105 }}
106 />
107 </div>
108 <div
109 style={{
110 display: "flex",
111 flex: 1,
112 flexDirection: "column",
113 gap: 16,
114// … truncated

What it pulls in

npm packages

  • remotion

Files it writes

  • registry/bases/editframe/components/chat-to-preview-layout/index.tsx

Facts

Registry
framecn
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

framecn.dev shadcn-labs/framecn on GitHub Raw registry item This item as JSON

More from framecn

All 101 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Generate Overlayai-generate-overlayframecnComponentsFree1 dep
AI Generation Canvasai-generation-canvasframecnComponentsFree1 dep
Animated Bar Chartanimated-bar-chartframecnComponentsFree1 dep
Animated Line Chartanimated-line-chartframecnComponentsFree1 dep
BackdropbackdropframecnComponentsFree1 dep
Blur Out Upblur-out-upframecnComponentsFree1 dep
Blur Revealblur-revealframecnComponentsFree1 dep
Bounding Box Selectorbounding-box-selectorframecnComponentsFree1 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