Code Example 4 - File tree with selectable code preview
- from @shadcnblocks
This component provides an intuitive interface for exploring a file structure with a tree view and examining the content of selected files in a code block. Ideal for users looking to navigate through and interact with code examples effectively, it facilitates seamless file browsing and code inspection within a component library.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcnblocks/code-example4Registry dependencies0
The CLI adds no other registry items with this one.
Packages0
No npm packages are installed with it.
