| Name | Type | Size | Updated |
|---|---|---|---|
| Folder | — | 20 Oct 2026 | |
| Folder | — | 29 Oct 2026 | |
| Markdown | 1.3 KB | 29 Oct 2026 |
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.
Workspace
The current interface study.
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.
npx shadcn@latest add https://ui.bld8.dev/r/file-browser.jsonInstall 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.
npm install
npm run devNext.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 manifestPublic API
Generated from the same public TypeScript exports as the agent documentation. The host owns the service contracts described above.
FileBrowser
| Prop | Type | Default |
|---|---|---|
className | string | undefined | — |
defaultExpandedIds | readonly string[] | undefined | — |
defaultFolderId | string | undefined | — |
entries | readonly FileBrowserEntry[] | undefinedStable globally unique IDs. Changing the array starts a new browsing session. | fileBrowserSample |
error | string | undefined | — |
loadChildren | ((parentId: string, context: { signal: AbortSignal; }) => Promise<readonly FileBrowserEntry[]>) | undefinedLazy metadata only. Honour the signal; stale or cancelled results are ignored. | — |
loading | boolean | undefined | false |
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.