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/pptx-viewer

PPTX Viewer

retab-ui/pptx-viewer
FreeComponent

A canvas-backed PowerPoint viewer rendered entirely client-side (no server conversion): continuous scroll, zoom, rotate, fit-to-width, download, and a per-slide overlay slot. Slides render lazily near the viewport and renders are serialized.

Install it

npx shadcn@latest add https://ui.retab.com/r/pptx-viewer.json

Source

registry/new-york-v4/ui/pptx-viewer.tsxui.retab.com/r/pptx-viewer.json · first 6 KB
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6import { joinEffectKey } from "@/lib/effect-key";
7import { useKeyedLayoutEffect } from "@/hooks/use-keyed-layout-effect";
8import { useKeyedMountEffect } from "@/hooks/use-keyed-mount-effect";
9import { useMountEffect } from "@/hooks/use-mount-effect";
10import {
11 createViewerResource,
12 type ViewerResource,
13} from "@/lib/viewer-resource";
14
15import { getPptxFitScale, getPptxResetKey } from "./pptx-viewer-core";
16import {
17 FILE_VIEWER_BEFORE_LAYOUT_MOTION_EVENT,
18 readFileViewerBeforeLayoutMotionFrame,
19} from "./file-viewer-elements";
20import {
21 captureFileViewerFitWidthAnchorScreenOffset,
22 createFileViewerFitWidthSurfaceMotionResolver,
23 FILE_VIEWER_FIT_WIDTH_ANCHOR_BLOCK_PROPERTY,
24 resolveFileViewerFitWidthMotionAnchorBlock,
25} from "./file-viewer-fit-width-motion";
26import type { FileViewerDocumentSurfaceMotionResolver } from "./file-viewer-motion-kernel";
27import type { FileViewerMotionFrame } from "./file-viewer-motion-plan";
28import { resolveFileViewerRendererLayoutInlineSize } from "./file-viewer-renderer-contract";
29import {
30 useOptionalFileViewerRendererEnvironment,
31 useOptionalFileViewerRendererFrame,
32} from "./file-viewer-renderer-frame";
33import { useReadingFractionRebase } from "./use-reading-fraction-rebase";
34import { PptxViewerFallback } from "./pptx-viewer-fallback";
35import { useRetainedPptxSource } from "./pptx-viewer-hooks";
36import { preloadPptxRenderer } from "./pptx-viewer-renderer";
37import { createPptxScrollActivity } from "./pptx-viewer-scroll";
38import {
39 PPTX_SLIDE_GAP,
40 PPTX_SLIDE_PADDING,
41 PptxSlideScroller,
42} from "./pptx-viewer-slide";
43import { evictPptxSource } from "./pptx-viewer-source";
44import type { PptxViewerProps } from "./pptx-viewer-types";
45import { usePptxViewportWidth } from "./pptx-viewer-viewport";
46import {
47 createPptxSlideLayout,
48 getPptxSlideAtScrollMarker,
49 getPptxSlideTop,
50 PPTX_READING_MARKER_RATIO,
51 usePptxVisibleSlide,
52} from "./pptx-viewer-visible-slide";
53import { usePptxZoom } from "./pptx-viewer-zoom";
54import {
55 createPptxZoomMotionController,
56 PPTX_ZOOM_MOTION_TOTAL_MS,
57} from "./pptx-viewer-zoom-motion";
58import { useIsClient } from "./use-is-client";
59import { ViewerControls } from "./viewer-controls";
60import { ViewerErrorBoundary } from "./viewer-error";
61
62export type { PptxDocumentSource, PptxViewerProps } from "./pptx-viewer-types";
63export type {
64 PptxSourceLoadTiming,
65 PptxSlideRenderTiming,
66 PptxSlideOverlayProps,
67// … truncated

What it pulls in

npm packages

  • lucide-react@^0.514.0
  • pptxviewjs@1.1.9
  • chart.js@^4.5.0

Other registry items

  • @retab/utils
  • button
  • @retab/scroll-area
  • separator
  • @retab/skeleton
  • dropdown-menu
  • @retab/viewer-controls
  • @retab/use-keyed-layout-effect
  • @retab/use-mount-effect

Files it writes

  • registry/new-york-v4/ui/pptx-viewer.tsx
  • registry/new-york-v4/ui/viewer-error.tsx
  • registry/new-york-v4/ui/pptx-viewer-types.ts
  • registry/new-york-v4/lib/viewer-source.ts
  • registry/new-york-v4/lib/viewer-resource.ts
  • registry/new-york-v4/ui/viewer-download.tsx
  • registry/new-york-v4/ui/pptx-viewer-core.ts
  • registry/new-york-v4/ui/pptx-viewer-cache.ts
  • registry/new-york-v4/ui/viewer-lru-cache.ts
  • registry/new-york-v4/ui/pptx-viewer-hooks.ts
  • registry/new-york-v4/ui/pptx-viewer-renderer.ts
  • registry/new-york-v4/ui/pptx-viewer-scroll.ts
  • registry/new-york-v4/ui/pptx-viewer-viewport.ts
  • registry/new-york-v4/ui/pptx-viewer-visible-slide.ts
  • registry/new-york-v4/ui/pptx-viewer-zoom-motion.ts
  • registry/new-york-v4/ui/pptx-viewer-zoom.ts
  • registry/new-york-v4/ui/pptx-viewer-source.ts
  • registry/new-york-v4/ui/pptx-viewer-slide.tsx
  • registry/new-york-v4/ui/pptx-viewer-fallback.tsx
  • registry/new-york-v4/ui/use-is-client.ts
  • registry/new-york-v4/lib/viewer-errors.ts
  • registry/new-york-v4/ui/file-viewer-context.tsx
  • registry/new-york-v4/ui/file-viewer-elements.ts
  • registry/new-york-v4/ui/file-viewer-motion-kernel.ts
  • registry/new-york-v4/ui/file-viewer-renderer-contract.ts
  • registry/new-york-v4/ui/file-viewer-renderer-frame.tsx
  • registry/new-york-v4/ui/file-viewer-motion-plan.ts
  • registry/new-york-v4/ui/viewer-types.ts
  • registry/new-york-v4/ui/use-reading-fraction-rebase.ts
  • registry/new-york-v4/ui/file-viewer-fit-width-motion.ts
  • registry/new-york-v4/ui/viewer-measurement.ts

Facts

Registry
retab-ui
Type
registry:ui
Access
Free
Files written
31
Licence
NOASSERTION
In the index
at or before 2026-08-13
Last confirmed
yesterday

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
Alertalertretab-uiComponentsFree1 dep
Alert Dialogalert-dialogretab-uiComponentsFree1 dep
Aspect Ratioaspect-ratioretab-uiComponentsFreeno deps
Attachment Sidebarattachment-sidebarretab-uiComponentsFree1 dep
Autocompleteautocompleteretab-uiComponentsFree2 deps
Calendarcalendarretab-uiComponentsFree2 deps
Code Viewercode-viewerretab-uiComponentsFree2 deps · 32 files
Commandcommandretab-uiComponentsFree2 deps

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