Tree Code Viewer
Interactive file tree viewer with multi-file code display and syntax highlighting for React applications. Perfect for documentation, code examples, and development tools with expandable folders and file icons.
Interactive file tree viewer with multi-file code display and syntax highlighting for React applications. Perfect for documentation, code examples, and development tools with expandable folders and file icons.
The component automatically displays icons based on file extensions:
| Extension | Icon | Color |
|---|---|---|
.tsx, .ts | TypeScript | Blue |
.jsx, .js | JavaScript | Yellow |
.css | CSS | Purple |
.json | JSON | Green |
.md | Markdown | Orange |
.html | HTML | Red |
.vue | Vue | Green |
.py | Python | Blue |
.java | Java | Orange |
/* Custom tree viewer styles */
.tree-viewer {
--tree-bg: #1a1a1a;
--tree-border: #333;
--tree-text: #fff;
--tree-hover: #2a2a2a;
}
.tree-viewer.light {
--tree-bg: #fff;
--tree-border: #e5e5e5;
--tree-text: #000;
--tree-hover: #f5f5f5;
}