BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ilinxa/card-tree-node

Card Tree Node

ilinxa/card-tree-node
FreeBlock

Card-tree renderer for flow canvas nodes — read-only viewer, a consumer-owned edit dialog pattern, and a typed port editor strip.

Install it

npx shadcn@latest add https://ui.ilinxa.com/r/card-tree-node.json

Source

src/registry/components/data/card-tree-node/parts/flat-field-strip.tsxui.ilinxa.com/r/card-tree-node.json
1"use client";
2
3import { memo } from "react";
4import { cn } from "@/lib/utils";
5import type { FlatField } from "../types";
6import { formatValue } from "../lib/format-value";
7
8/**
9 * Paints the first N flat-field entries from a card-tree tree as a definition
10 * list. Type-aware styling: numbers right-aligned (tabular), booleans + dates
11 * narrow, strings fluid.
12 */
13function FlatFieldStripImpl({ fields }: { fields: FlatField[] }) {
14 if (fields.length === 0) return null;
15 return (
16 <dl className="grid grid-cols-[max-content_1fr] gap-x-2 gap-y-0.5 px-3 py-2 text-xs">
17 {fields.map((field) => (
18 <div key={field.key} className="contents">
19 <dt className="truncate font-medium text-muted-foreground">{field.key}</dt>
20 <dd
21 className={cn(
22 "truncate",
23 field.type === "number" && "text-right font-mono tabular-nums",
24 field.type === "boolean" && "text-center",
25 field.type === "date" && "font-mono",
26 )}
27 >
28 {formatValue(field.value, field.type)}
29 </dd>
30 </div>
31 ))}
32 </dl>
33 );
34}
35
36export const FlatFieldStrip = memo(FlatFieldStripImpl);

What it pulls in

npm packages

  • lucide-react

Other registry items

  • popover
  • select
  • checkbox
  • input
  • label
  • button
  • @ilinxa/card-tree
  • @ilinxa/flow-canvas

Files it writes

  • src/registry/components/data/card-tree-node/index.ts
  • src/registry/components/data/card-tree-node/types.ts
  • src/registry/components/data/card-tree-node/lib/derive-flat-fields.ts
  • src/registry/components/data/card-tree-node/lib/derive-title.ts
  • src/registry/components/data/card-tree-node/lib/enumerate-subcards.ts
  • src/registry/components/data/card-tree-node/lib/format-value.ts
  • src/registry/components/data/card-tree-node/lib/find-port-target.ts
  • src/registry/components/data/card-tree-node/lib/port-mutators.ts
  • src/registry/components/data/card-tree-node/parts/flat-field-strip.tsx
  • src/registry/components/data/card-tree-node/parts/card-tree-viewer.tsx
  • src/registry/components/data/card-tree-node/parts/subcard-block.tsx
  • src/registry/components/data/card-tree-node/parts/port-editor-add-popover.tsx
  • src/registry/components/data/card-tree-node/parts/port-editor-row.tsx
  • src/registry/components/data/card-tree-node/parts/port-editor-strip.tsx

Facts

Registry
ilinxa
Type
registry:block
Access
Free
Files written
14
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ui.ilinxa.com ilinxa/pro-ui on GitHub Raw registry item This item as JSON

More from ilinxa

All 184 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Account Switcheraccount-switcherilinxaBlocksFree1 dep · 10 files
Account Switcher (deprecated alias)account-switcher-01ilinxaBlocksFreeno deps
Account Switcher — fixturesaccount-switcher-fixturesilinxaBlocksFreeno deps
App Sidebarapp-sidebarilinxaBlocksFree1 dep · 37 files
App Sidebar — fixturesapp-sidebar-fixturesilinxaBlocksFreeno deps
Rich Text Editor (deprecated alias)article-body-01ilinxaBlocksFreeno deps
Article Metaarticle-metailinxaBlocksFree1 dep · 4 files
Article Meta (deprecated alias)article-meta-01ilinxaBlocksFreeno deps
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

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.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

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.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

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.

BlockDex