BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/retab-ui/xlsx-sources-block

Excel Sources

retab-ui/xlsx-sources-block
FreeBlock

Extracted values linked to spreadsheet cells across sheets — hover to switch sheet, highlight the cell, and scroll to it.

Install it

npx shadcn@latest add https://ui.retab.com/r/xlsx-sources-block.json

Source

registry/new-york-v4/blocks/xlsx-sources-block.tsxui.retab.com/r/xlsx-sources-block.json
1"use client";
2
3import * as React from "react";
4
5import type { Source } from "@/lib/document-source";
6import {
7 FileViewer,
8 FileViewerContent,
9 FileViewerHeader,
10 FileViewerTitle,
11 FileViewerProvider,
12 FileViewerSidebar,
13 FileViewerSidebarContent,
14 FileViewerInset,
15 FileViewerControls,
16 FileViewerViewport,
17} from "@/components/ui/file-viewer";
18import { SegmentedDocumentProvider } from "@/components/ui/segmented-document-provider";
19import { useSegmentedSourceFieldLink } from "@/components/ui/source-field-link";
20import {
21 SourceFieldList,
22 type SourceField,
23} from "@/components/ui/source-field-list";
24import { createSourcesSegmentedDocumentModel } from "@/components/ui/source-segmented-document-model";
25import {
26 sourceToXlsxCell,
27 useXlsxSourceTarget,
28} from "@/components/ui/xlsx-source";
29import { XlsxViewer, type XlsxViewerHandle } from "@/components/ui/xlsx-viewer";
30import xlsxSample from "@/components/viewers/sample-data/xlsx-sources.json";
31
32const XLSX_URL = "/samples/nvidia-financials-fy2024.xlsx";
33const XLSX_SOURCE = {
34 kind: "url" as const,
35 url: XLSX_URL,
36 fileName: "nvidia-financials-fy2024.xlsx",
37};
38
39type XlsxField = SourceField & { source: Source };
40
41const FIELDS = (xlsxSample as XlsxField[]).map((field) => ({
42 ...field,
43 hint:
44 field.source.anchor.kind === "spreadsheet_cell"
45 ? `${field.source.anchor.sheet_name ?? `Sheet ${field.source.anchor.sheet_index + 1}`} · ${field.source.anchor.coordinate ?? ""}`
46 : undefined,
47}));
48const FIELD_BY_KEY = new Map(FIELDS.map((field) => [field.key, field]));
49const SEGMENTED_DOCUMENT = createSourcesSegmentedDocumentModel(
50 FIELDS.map((field) => ({
51 id: field.key,
52 label: field.label,
53 source: field.source,
54 })),
55);
56
57/**
58 * Excel sources block — extracted values linked to the spreadsheet cells they
59 * came from, across sheets. Hovering a field switches to its sheet, highlights
60 * the cell, and scrolls to it. Segmented source interaction owns
61 * preview/selection while the XLSX source adapter owns sheet-aware navigation.
62 */
63export function XlsxSourcesBlock() {
64 const viewerRef = React.useRef<XlsxViewerHandle>(null);
65
66 return (
67 <SegmentedDocumentProvider model={SEGMENTED_DOCUMENT}>
68 <XlsxSourcesContent viewerRef={viewerRef} />
69 </SegmentedDocumentProvider>
70 );
71}
72
73function XlsxSourcesContent({
74 viewerRef,
75}: {
76 viewerRef: React.RefObject<XlsxViewerHandle | null>;
77}) {
78 const target = useXlsxSourceTarget(viewerRef);
79// … truncated

What it pulls in

Other registry items

  • @retab/xlsx-viewer
  • @retab/xlsx-source
  • @retab/document-source
  • @retab/segmented-document
  • @retab/source-segmented-document
  • @retab/source-field-list
  • @retab/source-field-link
  • @retab/source-indicator

Files it writes

  • registry/new-york-v4/blocks/xlsx-sources-block.tsx
  • components/viewers/sample-data/xlsx-sources.json

Facts

Registry
retab-ui
Type
registry:block
Access
Free
Files written
2
Licence
NOASSERTION
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

ui.retab.com retab-dev/retab-ui on GitHub Raw registry item This item as JSON

More from retab-ui

All 130 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Classify Consensusclassify-consensus-viewer-blockretab-uiBlocksFree1 dep · 4 files
CSV Sourcescsv-sources-blockretab-uiBlocksFreeno deps · 2 files
DOCX Sourcesdocx-sources-blockretab-uiBlocksFreeno deps · 2 files
Avatar Image Slotdropzone-avatar-image-slotretab-uiBlocksFree1 dep · 2 files
Dropzonedropzone-blockretab-uiBlocksFree1 dep · 26 files
Comparison Pairdropzone-comparison-pair-uploadretab-uiBlocksFree1 dep · 2 files
Controlled Queuedropzone-controlled-queueretab-uiBlocksFree1 dep · 2 files
Custom Thumbnail Griddropzone-custom-thumbnail-gridretab-uiBlocksFree1 dep · 2 files

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