Card Tree — fixtures
ilinxa/card-tree-fixturesFreeBlock
Card Tree plus the dummy-data fixtures used by the docs-site demo.
Install it
npx shadcn@latest add https://ui.ilinxa.com/r/card-tree-fixtures.jsonSource
1import type { CardTreeJsonNode } from "./types";23/**4 * One rich demo tree exercising every v0.1 feature:5 * • 6 levels of depth (root + 5 nested levels)6 * • all five field types: string, number, boolean, date (ISO-8601), null7 * • all five predefined keys: codearea, image, table, quote, list8 * • per-card __rcmeta on multiple cards9 * • a card without IDs (auto-canonicalization)10 * • leaf cards with body content (proves "all cards collapsible")11 */12export const RICH_DEMO: CardTreeJsonNode = {13 __rcid: "thesis-001",14 __rcorder: 0,15 __rcmeta: {16 author: "Hessam Hezaveh",17 started: "2026-01-15",18 pages: 87,19 chapters: 4,20 submitted: false,21 grade: null,22 },23 title: "Adaptive UI Components for Data-Heavy Applications",24 abstract:25 "A study of dynamic component patterns for hierarchical structured content in modern web apps.",26 word_count: 28400,27 status: "in-progress",28 approved: true,29 defense_date: "2026-06-15T14:00:00Z",30 last_edited: "2026-04-28",31 reviewer_count: null,3233 list: [34 "structured-content",35 "tree-rendering",36 "json-native",37 "accessibility",38 "round-trip",39 ],4041 image: {42 src: "https://images.unsplash.com/photo-1518770660439-4636190af475?w=800&q=80",43 alt: "Architecture diagram cover",44 },4546 introduction: {47 __rcid: "ch1",48 __rcorder: 0,49 __rcmeta: { drafted: "2026-02-01", revisions: 4 },50 pages: 8,51 completed: true,5253 quote:54 "The web demands components that adapt to their data, not the other way around.",5556 motivation: {57 __rcid: "ch1-mot",58 __rcorder: 0,59 summary: "Why hierarchical structured content needs a first-class viewer",60 relevance_score: 8.5,61 addresses_gap: true,6263 table: {64 headers: ["component-class", "static-shape", "adaptive-shape"],65 rows: [66 ["table", true, false],67 ["card-tree", false, true],68 ["form-builder", true, false],69 ["json-tree", false, true],70 ],71 },7273 industry_need: {74 __rcid: "ch1-mot-ind",75 __rcorder: 0,76 summary: "Industry surveys 2024-2026",77 sample_size: 1240,78 confidence: 0.95,79 peer_reviewed: false,8081 codearea: {82 format: "ts",83 content:84 "interface AdaptiveProps<T> {\n data: T;\n schema?: Schema<T>;\n // shape inferred when schema is absent\n}",85 },8687 survey_result: {88 __rcid: "ch1-mot-ind-srv",89// … 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 |
