For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A drive that acts on its files, with retryable uploads, invite and link sharing, a move picker, version history and a restorable bin
When to use
- A team drive page: a folder tree beside the open folder's contents as a list or card grid
- Shared studio or agency storage where people upload, share by link, move and restore deleted items
When not to use
- A shared folder hierarchy whose rows reparent by pointer, with tri-state folder checkboxes: use the Shared Drive Folders block
- A bare outline of nested items to pick from, with no file listing, sharing or bin: use the Tree component
- One nested table of folders whose rows move into other folders by pointer: use the Drag & Drop blocks
- A drop zone or picker for attachments inside a form, with no drive to browse: use the File Upload component
Agent notes
- Sample files, versions and share lists come from
DRIVE_TREE,versionsFor,defaultPrincipalsandSHARE_TEAMS; edits live inuseStateonly - File open, downloads, bulk share,
restoreVersionandonGetStorageonly show a toast, so wire each to your storage API - A
setIntervalticker inDriveExplorerfakes upload progress and fails 12% of transfers at random; replace it with a real upload - page.tsx wraps each block in an
h-svhmainwith padding and the block fills it withh-full; inside an app shell give it a bounded height
Third-party API docs
- TanStack Table v9: API reference, docs
- Headless Tree v1: API reference, docs
- Sonner v2: API reference, docs
https://web.dev.reui.io/blocks/solutions/files/solution-files-1.mdget_block("solution-files-1")npx shadcn@latest add @reui/solution-files-1Shadcn Components in the Drive Explorer Block
Dependencies
- @headless-tree/core
- @headless-tree/react
- @tanstack/react-table
- cn
- sonner
Shadcn Drive Explorer Block
Drive Explorer with Folder Tree Rail and Switchable List or Grid Views. Part of the ReUI Shadcn Solutions Files blocks collection.
Drive Explorer is a full-height file manager module for browsing team storage: a headless-tree folder rail with secondary scope links and a storage meter, a folders band above the browse surface, a ReUI DataGrid list with owner, type, size and modified columns, a switchable card grid, a view settings popover for density, sort and visible properties, bulk selection actions, and separate empty states for an empty folder and a filtered miss.
It is composed from Alert Dialog, Avatar, Badge, Breadcrumb, Button, Card, Checkbox, Collapsible, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Drive Explorer Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Solutions Files blocks to assemble a full screen instead of a single section.
Related Shadcn Solutions Block Categories
- Dev Ops (6) Platform and SRE console pages for scheduled jobs, deployments, audit trails, edge firewall rules, SLOs and data connections.
- AI Ops (9) AI startup control plane pages for model providers, prompts, token cost, routing, and quotas.
- CRM (9) Sales CRM pages for founders, agencies, and startups managing leads and deals.
- Agents (10) AI agent run operation, approval, tool permission, and evaluation pages.
- Analytics (9) Product usage, activation, cohort, event, experiment, and growth reporting pages.
- Billing (9) Subscription, invoice, metering, plan, upgrade, and failed payment pages.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Drive Explorer block?
Use it for a drive that acts on its files, with retryable uploads, invite and link sharing, a move picker, version history and a restorable bin.
The Files category fits:
- A team drive page: a folder tree beside the open folder's contents as a list or card grid
- Shared studio or agency storage where people upload, share by link, move and restore deleted items
For a shared folder hierarchy whose rows reparent by pointer, with tri-state folder checkboxes, use the Shared Drive Folders block. For a bare outline of nested items to pick from, with no file listing, sharing or bin, use the Tree component. For one nested table of folders whose rows move into other folders by pointer, use the Drag & Drop blocks. For a drop zone or picker for attachments inside a form, with no drive to browse, use the File Upload component.
What is the Drive Explorer block built with?
Can I restyle the Drive Explorer block?
How should I use Shadcn files blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.