ProjectsMIT · Free

File browser.

A folder tree, clear file metadata and a quieter way to find the next reference.

A PLACE FOR THE DETAILS

Everything in its place.

Browse the folders. Keep the context close.

Sample metadata

Workspace

The current interface study.

3 items
Files in Workspace
NameTypeSizeUpdated
Folder—20 Oct 2026
Folder—29 Oct 2026
Markdown1.3 KB29 Oct 2026
DetailsMetadata

Workspace

The current interface study.

Type
Folder
Updated
29 Oct 2026
Location
Files

Details describe the file. This example does not open its contents.

Live interface · sample data · state resets on reload

GET STARTED

Source you can customise.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/file-browser.json

Install into an existing application, or download the complete starter below.

Download the starter, unzip it and run the commands below. Choose Next.js or React + Vite. Both include the same BLD8 packages and editable source. No BLD8 npm installation is needed.

Terminal
npm install
npm run dev

Next.js opens on http://localhost:3000; Vite opens on http://127.0.0.1:5173. Use the port printed by the dev server if the default is occupied. Node 22.13+ and React 19 are used. Import FileBrowser from @bld8/blocks in your own composition.

Moving between Next.js and Vite? Keep the UI source and review the application-specific changes.

NOTES TO SELF

A clear starting point.

Folder navigation, breadcrumbs, local search, sorting and file inspection use one shared selection. Sample entries are illustrative metadata, not files on disk. Archive loads on demand through an abortable sample loader. Supply entries and loadChildren(parentId, {signal}) to connect a service. Loading, empty, failed-folder and retry states are included, and stale responses cannot replace newer entries. The host owns authentication, authorisation, durable storage and file transfers. The block does not upload, download or read file contents.

Original BLD8 source uses MIT. Personal and commercial use are allowed; preserve the copyright, licence and applicable third-party notices when sharing source.

Licence and usage Source manifest

Public API

Generated from the same public TypeScript exports as the agent documentation. The host owns the service contracts described above.

FileBrowser

FileBrowser public properties
PropTypeDefault
classNamestring | undefined—
defaultExpandedIdsreadonly string[] | undefined—
defaultFolderIdstring | undefined—
entriesreadonly FileBrowserEntry[] | undefined

Stable globally unique IDs. Changing the array starts a new browsing session.

fileBrowserSample
errorstring | undefined—
loadChildren((parentId: string, context: { signal: AbortSignal; }) => Promise<readonly FileBrowserEntry[]>) | undefined

Lazy metadata only. Honour the signal; stale or cancelled results are ignored.

—
loadingboolean | undefinedfalse
onRetry(() => void) | undefined—
onSelectionChange((entry: FileBrowserEntry | null) => void) | undefined—

Tables come from the public TypeScript declarations. Related types and function parameters are shown alongside their component. A dash means no default is declared at the public function boundary.