DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Base8
AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all8
Columns5
Drag & Drop4
  • Sprint Backlog
  • Routing Rules
  • Dispatch Layout Presets
  • Shared Drive Folders
Editing6
Expansion3
Filtering4
Grouping7
Virtualization2

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 folder hierarchy whose rows drop inside other folders or between siblings, with cascading checkboxes, sortable headers and a bulk bar

When to use

  • Ranked lists where a dragged row sets priority or precedence, such as a sprint backlog or routing rules
  • Column layouts users rearrange by dragging headers, or swap among named presets
  • File and folder hierarchies whose rows drag into another folder or between siblings to reorder

When not to use

  • A file browser with a folder tree rail beside switchable list and grid views: use the Drive Explorer block
  • A people hierarchy with span of control rather than files and folders: use the Reporting Hierarchy block
  • A reorderable list or stack of cards with no table columns: use the Sortable component
  • A bare reorderable table assembled from parts in a layout you already have: use the Data Grid component
  • Choosing which fields show and how dense rows sit, with order left as it is: use the Columns blocks

Agent notes

  • STORAGE_TREE is the demo drive; ids must stay unique across every level because getRowId reads them flat
  • handleRowAction only toasts for open, download and share, and the bulk bar's onDownload and onShare toast too
  • Delete and handleBulkDelete call removeNodes on local tree state only; send the delete to your API before it
  • handleDragEnd writes the new order to local useState only; save the rows, rules, columns or tree to your API from there
  • handleReset restores the seeded demo order, so point it at the order your API last saved or remove it
  • Each page.tsx centers the grid in a min-h-svh main with max-w-7xl and padding; drop that wrapper inside an app shell

Third-party API docs

  • TanStack Table v9: API reference, docs
  • dnd kit v6: API reference, docs (these are the Legacy docs; dndkit.com's default docs cover the newer @dnd-kit/react, a different API)
  • date-fns v4: docs
  • Sonner v2: API reference, docs
Markdownhttps://web.dev.reui.io/blocks/data-grid/drag-drop/data-grid-drag-drop-4.md
MCPget_block("data-grid-drag-drop-4")
Installnpx shadcn@latest add @reui/data-grid-drag-drop-4
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in the Shared Drive Folders Block

  • Avatar
  • BadgeReUI
  • Button
  • Data GridReUI
  • Dropdown Menu
  • Empty
  • FrameReUI
  • Icon StackReUI

Dependencies

  • @dnd-kit/core
  • @dnd-kit/sortable
  • @tanstack/react-table
  • cn
  • date-fns
  • sonner

Shadcn Shared Drive Folders Block

Shared drive tree grid with reparenting drag and drop and tri-state folder checkboxes. Part of the ReUI Shadcn Data Grid Drag & Drop blocks collection.

Nested file storage browser on the ReUI DataGrid: a recursive folder tree with getSubRows and DataGridTableRowExpand depth indentation, file manager style tree drag and drop that reparents, dropping on a folder to go inside it and between rows to reorder, with an insertion line and a folder tint as the only feedback so no row moves for the length of a drag, the drop depth read off the pointer's horizontal travel, a closed folder reachable by a plain vertical drag and opened once it receives a row, and a carried folder taking its whole subtree, tri-state folder checkboxes that cascade to every descendant, rolled up folder size and item count, expand all and collapse all controls, a bulk selection bar, and an honest empty state.

It is composed from Avatar, Badge, Button, Data Grid, Dropdown Menu, Empty, Frame, Icon Stack, so every part of it is a primitive you can restyle with your own design tokens.

What You Can Build With the Shared Drive Folders 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 Data Grid Drag & Drop blocks to assemble a full screen instead of a single section.

All Shadcn Data Grid Drag & Drop Blocks

The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.

  • Sprint Backlog Sprint backlog data grid with drag handle row reordering and live priority rank
  • Routing Rules Routing rules data grid with drag-to-reorder priority and per-row enable switches
  • Dispatch Layout Presets Fulfillment dispatch data grid with drag-to-reorder columns and saved layout presets

Related Shadcn Data Grid Block Categories

  • Base (8) Complete table screens with toolbar filters and pagination for CRM, support, team, project, and pricing data.
  • Advanced (8) Analytics grids with in-cell charts, KPI rollups, a tree view and an SLO chart, plus a review queue, a stock mix sheet, a pro forma and a visit planner.
  • Columns (5) Column visibility, pinning, resizing, density, and settings controls.
  • Editing (6) Inline create, edit, and delete cells for full CRUD workflows.
  • Expansion (3) Expandable parent rows with nested sub-rows and master-detail panels.
  • Filtering (4) Search, faceted filters, filter builders, and status tab toolbars.

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 Shared Drive Folders block?

Use it for a folder hierarchy whose rows drop inside other folders or between siblings, with cascading checkboxes, sortable headers and a bulk bar.

The Drag & Drop category fits:

  • Ranked lists where a dragged row sets priority or precedence, such as a sprint backlog or routing rules
  • Column layouts users rearrange by dragging headers, or swap among named presets
  • File and folder hierarchies whose rows drag into another folder or between siblings to reorder

For a file browser with a folder tree rail beside switchable list and grid views, use the Drive Explorer block. For a people hierarchy with span of control rather than files and folders, use the Reporting Hierarchy block. For a reorderable list or stack of cards with no table columns, use the Sortable component. For a bare reorderable table assembled from parts in a layout you already have, use the Data Grid component. For choosing which fields show and how dense rows sit, with order left as it is, use the Columns blocks.

What is the Shared Drive Folders block built with?

Shared Drive Folders uses Avatar, Badge, Button, Data Grid, Dropdown Menu, Empty, Frame, Icon Stack. Installing the block through the ReUI registry pulls those dependencies in for you.

Can I restyle the Shared Drive Folders block?

Yes. It reads your design tokens, so switching style, radius, base color, font, or icon library in the customizer restyles it without touching the markup.

How should I use Shadcn drag & drop blocks in a real project?

Treat them as structured starting points. Keep the layout, hierarchy, and interaction ideas that work, then replace placeholder content, data wiring, and business logic with your own product requirements.
PreviousDispatch Layout Presets

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. Data Grid
  3. Drag & Drop
  4. Shared Drive Folders
DocsMarkdownShare

Shadcn Shared Drive Folders

Nested file storage browser on the ReUI DataGrid: a recursive folder tree with getSubRows and DataGridTableRowExpand depth indentation, file manager style tree drag and drop that reparents, dropping on a folder to go inside it and between rows to reorder, with an insertion line and a folder tint as the only feedback so no row moves for the length of a drag, the drop depth read off the pointer's horizontal travel, a closed folder reachable by a plain vertical drag and opened once it receives a row, and a carried folder taking its whole subtree, tri-state folder checkboxes that cascade to every descendant, rolled up folder size and item count, expand all and collapse all controls, a bulk selection bar, and an honest empty state.