Card Tree Node — fixtures
ilinxa/card-tree-node-fixturesFreeBlock
Card Tree Node plus the dummy-data fixtures used by the docs-site demo.
Install it
npx shadcn@latest add https://ui.ilinxa.com/r/card-tree-node-fixtures.jsonSource
1// F-S1 lock — RELATIVE import for cross-procomp types. Same-category alias2// imports get the slug name substituted by shadcn's rewriter; relative paths3// bypass that and translate verbatim.4import type { CanvasData } from "../flow-canvas/types";5import type { CardTreeCanvasNode } from "./types";67// 3 card-tree nodes + 1 custom-json node. Each card-tree node has __rcids8// pre-attached at the root + at every subcard, so subcard-click-to-focus9// works out of the box (F-03 lock — degrades gracefully when __rcid is10// missing, but the happy path is what the demo exercises).1112const promptCard: CardTreeCanvasNode = {13 __type: "card-tree",14 __rcid: "card-prompt-root",15 title: "User Prompt",16 priority: 1,17 urgency: true,18 createdAt: "2026-05-16T09:14:00Z",19 ports: [20 { id: "p-prompt-out", side: "right", dir: "out", type: "text" },21 ],22 metadata: {23 __rcid: "card-prompt-metadata",24 title: "Metadata",25 sessionId: "sess-7a2c",26 locale: "en-US",27 ports: [28 // Type "text" matches the target (p-llm-system-in) so typed-port29 // validation passes; the metadata stream is text-shaped to LLM.30 { id: "p-prompt-meta-out", side: "right", dir: "out", type: "text" },31 ],32 },33};3435const llmCard: CardTreeCanvasNode = {36 __type: "card-tree",37 __rcid: "card-llm-root",38 title: "GPT-4 Inference",39 model: "gpt-4o-2026-04",40 temperature: 0.7,41 maxTokens: 2048,42 ports: [43 { id: "p-llm-in", side: "left", dir: "in", type: "text" },44 { id: "p-llm-out", side: "right", dir: "out", type: "text" },45 ],46 system: {47 __rcid: "card-llm-system",48 title: "System message",49 content: "You are a helpful agent. Always cite sources.",50 ports: [51 // Dropped `multi: true` (was inconsistent with p-llm-user-in which52 // has no multi). The multi field is not passed through to xyflow's53 // <Handle> by PortHandle — it's a flow-canvas-only field for the54 // typed-edge validator. Default (multi: false) is fine for v0.1.55 { id: "p-llm-system-in", side: "left", dir: "in", type: "text" },56 ],57 },58 user: {59 __rcid: "card-llm-user",60 title: "User message",61 content: "{{prompt}}",62 ports: [63 { id: "p-llm-user-in", side: "left", dir: "in", type: "text" },64 ],65 },66};6768const responseCard: CardTreeCanvasNode = {69 __type: "card-tree",70 __rcid: "card-response-root",71 title: "Response",72 format: "markdown",73 streaming: false,74 receivedAt: "2026-05-16T09:14:03Z",75 ports: [76// … truncated
What it pulls in
Other registry items
Files it writes
More from ilinxa
All 184 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Switcheraccount-switcher | ilinxa | Blocks | Free | 1 dep · 10 files | |
| Account Switcher (deprecated alias)account-switcher-01 | ilinxa | Blocks | Free | no deps | |
| Account Switcher — fixturesaccount-switcher-fixtures | ilinxa | Blocks | Free | no deps | |
| App Sidebarapp-sidebar | ilinxa | Blocks | Free | 1 dep · 37 files | |
| App Sidebar — fixturesapp-sidebar-fixtures | ilinxa | Blocks | Free | no deps | |
| Rich Text Editor (deprecated alias)article-body-01 | ilinxa | Blocks | Free | no deps | |
| Article Metaarticle-meta | ilinxa | Blocks | Free | 1 dep · 4 files | |
| Article Meta (deprecated alias)article-meta-01 | ilinxa | Blocks | Free | no deps |
