File managerPro
File browser with folders, grid / list views, search, stars and right-click actions.
What's inside
- Grid and list views
- Breadcrumbs and search
- Right-click menu
- Storage meter
When to use
- Document storage, asset libraries and attachments.
When not to use
- Code repositories: use the tree view.
Installation
Usage
Import it from @/components/blocks/file-manager after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { FileManager } from "@/components/blocks/file-manager";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<FileManager />
</main>
);
}API reference
FileManager
A file browser with folders and breadcrumbs, grid and list views, search, stars, right-click actions and a storage meter. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move between files |
| Enter | Open a folder or preview a file |
| Shift+F10 | Open the file's actions |
Accessibility
- Each file is a focusable area named after the file, with a context menu.
- The view switch is a labelled radio group.
Motion
- Files re-flow between grid and list; deleted files shrink away; the view pill slides.
Responsive behavior
- Two grid columns on phones, up to four on desktop.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Load folder contents lazily when opened.
This page as Markdown, for assistants and coding agents:
/blocks/file-manager/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt