Patrick Xin

Collapsible File Tree

Navigation

About

A file tree with collapsible folders, file-type icons, and colored badges for building file explorers and navigation panels.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Collapsible File Tree to your project and fits it to your theme.

Code

How Collapsible File Tree is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import CollapsibleFileTree from "@/components/ui/collapsible-file-tree";

export default function Demo() {
  return (
    <div className="flex w-full justify-center p-6">
      <CollapsibleFileTree />
    </div>
  );
}

Dependencies

More by Patrick Xin

View all
  • Onboarding Dialog

    Onboarding Dialog

    813
  • Vercel Notification Popover

    Vercel Notification Popover

    166
  • Morphing Dialog

    Morphing Dialog

    132
  • Expandable Dialog

    Expandable Dialog

    12
  • Unsplash Gallery Dialog

    Unsplash Gallery Dialog

    7
  • Autocomplete

    Autocomplete

    3
  • Team Management Dialog

    Team Management Dialog

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6