277

React Excel Viewer

A React Excel viewer component for previewing XLSX workbooks with sheet tabs, frozen panes, formulas, large-grid navigation, and cell selection.

The React Excel Viewer is the core spreadsheet preview for XLSX workbooks, financial models, imports, exports, schedules, and operational reports.

Installation

pnpm dlx shadcn@latest add @extend/xlsx-viewer

Useful behaviors

  • Sheet tabs, grid virtualization, column resizing, and frozen rows or columns.
  • Formula/value display modes and formatted cell rendering.
  • Search across sheets and cell ranges.
  • Optional metadata for workbook properties, hidden sheets, and named ranges.

API Reference

XlsxViewerPreview

The XlsxViewerPreview component renders an Excel workbook with upload, theme, zoom, sheet navigation, and grid controls around the @extend-ai/react-xlsx viewer.

PropTypeDefaultRequired
classNamestring-No
defaultIsDarkbooleanfalseNo
fileNamestring-No
isDarkboolean-No
onIsDarkChange(isDark: boolean) => void-No
roundedbooleanfalseNo
srcstring-No