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/file-system

File System

retab-ui/file-system
FreeComponent

A document workspace over a flat object-store manifest with list, grid, columns, lazy folders, generated thumbnails, and FileViewer previews.

Install it

npx shadcn@latest add https://ui.retab.com/r/file-system.json

Source

registry/new-york-v4/ui/file-system.tsxui.retab.com/r/file-system.json · first 6 KB
1"use client";
2
3import * as React from "react";
4import { AlertCircle, FileQuestion, RefreshCw } from "lucide-react";
5
6import { cn } from "@/lib/utils";
7import { Button } from "@/components/ui/button";
8import { FileViewerPreview } from "@/components/ui/file-viewer";
9import { Spinner } from "@/components/ui/spinner";
10
11import {
12 FileSystemOpenPreview,
13 useFileSystemOpenPreview,
14} from "./file-system-open-preview-dialog";
15import {
16 FileSystemBrowser,
17 FileSystemHeader,
18 FileSystemSelection,
19 useFileSystemBrowser,
20 useFileSystemHeader,
21 useFileSystemSelectedItem,
22 useFileSystemSelectedSource,
23 useFileSystemSelection,
24 type FileSystemSelectionRenderState,
25} from "./file-system-parts";
26import {
27 FILE_SYSTEM_COLUMNS_SIDEBAR_WIDTH,
28 FILE_SYSTEM_SIDEBAR_WIDTH,
29} from "./file-system-columns-view";
30import { FileSystemProvider, useFileSystem } from "./file-system-provider";
31import { FileSystemThumbnail } from "./file-system-thumbnail";
32import type {
33 FileSystemEntry,
34 FileSystemFileItem,
35 FileSystemProps,
36} from "./file-system-types";
37import {
38 ViewerBody,
39 ViewerHeader,
40 ViewerRoot,
41 ViewerSidebar,
42 ViewerSurface,
43} from "./viewer";
44
45export {
46 FileSystemOpenPreview,
47 FileSystemProvider,
48 FileSystemBrowser,
49 FileSystemHeader,
50 FileSystemSelection,
51 useFileSystem,
52 useFileSystemBrowser,
53 useFileSystemHeader,
54 useFileSystemOpenPreview,
55 useFileSystemSelectedItem,
56 useFileSystemSelectedSource,
57 useFileSystemSelection,
58};
59
60export type {
61 FileSystemFileItem,
62 FileSystemFolderItem,
63 FileSystemItem,
64 FileSystemLoadChildrenArgs,
65 FileSystemLoadChildrenResult,
66 FileSystemProps,
67 FileSystemQueryState,
68 FileSystemResolveSourceArgs,
69 FileSystemView,
70} from "./file-system-types";
71export type { FileSystemProviderProps } from "./file-system-provider";
72export type {
73 FileSystemBrowserPartState,
74 FileSystemHeaderState,
75 FileSystemSelectionRenderState,
76 FileSystemSelectionState,
77} from "./file-system-parts";
78
79export function FileSystem({ className, ...providerProps }: FileSystemProps) {
80 return (
81 <FileSystemProvider {...providerProps}>
82 <FileSystemRoot className={className} />
83 </FileSystemProvider>
84 );
85}
86
87function FileSystemRoot({ className }: { className?: string }) {
88 const { browser } = useFileSystem();
89 const sidebarWidth =
90 browser.view === "columns"
91 ? FILE_SYSTEM_COLUMNS_SIDEBAR_WIDTH
92 : FILE_SYSTEM_SIDEBAR_WIDTH;
93
94 return (
95 <div data-slot="file-system">
96 <ViewerRoot
97// … truncated

What it pulls in

npm packages

  • lucide-react
  • @pierre/trees@1.0.0-beta.4

Other registry items

  • @retab/utils
  • breadcrumb
  • button
  • dialog
  • @retab/file-size-format
  • @retab/file-thumbnail
  • @retab/file-viewer
  • @retab/input
  • @retab/scroll-area
  • @retab/spinner
  • tabs

Files it writes

  • registry/new-york-v4/ui/file-system.tsx
  • registry/new-york-v4/ui/file-system-provider.tsx
  • registry/new-york-v4/ui/file-system-parts.tsx
  • registry/new-york-v4/ui/file-system-browser-state.ts
  • registry/new-york-v4/ui/file-system-browser-controller.ts
  • registry/new-york-v4/ui/file-system-kernel.ts
  • registry/new-york-v4/ui/file-system-kernel-runtime.ts
  • registry/new-york-v4/ui/file-system-kernel-command-effects.ts
  • registry/new-york-v4/ui/file-system-async-task.ts
  • registry/new-york-v4/ui/file-system-folder-task.ts
  • registry/new-york-v4/ui/file-system-controlled-props.ts
  • registry/new-york-v4/ui/file-system-kernel-selectors.ts
  • registry/new-york-v4/ui/file-system-selection-source-task.ts
  • registry/new-york-v4/ui/file-system-open-source-task.ts
  • registry/new-york-v4/ui/file-system-open-preview-state.ts
  • registry/new-york-v4/ui/file-system-open-preview-dialog.tsx
  • registry/new-york-v4/ui/viewer.tsx
  • registry/new-york-v4/ui/file-system-types.ts
  • registry/new-york-v4/ui/file-system-index.ts
  • registry/new-york-v4/ui/file-system-query.ts
  • registry/new-york-v4/ui/file-system-source-controller.ts
  • registry/new-york-v4/ui/file-system-controls.tsx
  • registry/new-york-v4/ui/file-system-navigation.ts
  • registry/new-york-v4/ui/use-file-system-roving-focus.ts
  • registry/new-york-v4/ui/file-system-thumbnail.tsx
  • registry/new-york-v4/ui/file-system-list-view.tsx
  • registry/new-york-v4/ui/file-system-grid-view.tsx
  • registry/new-york-v4/ui/file-system-columns-view.tsx
  • registry/new-york-v4/ui/file-system-utils.ts

Facts

Registry
retab-ui
Type
registry:ui
Access
Free
Files written
29
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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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