0.0.1-0 • Published 2 years ago

firecamp-treeview v0.0.1-0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Firecamp TreeView

Tree renderer based on VSCode's TreeView API and powered by Aspen.

Installation

# ⚠ Temporary install method
yarn add firecamp-treeview

# ⚠ Future install method
yarn add @firecamp/treeview

Usage

Refer to VSCode's TreeView API to be able to make the most out of this package.

Once you know the fundamentals, here's how you can use it:

import { FirecampTreeView } from 'firecamp-treeview';

const App = () => {
  // If this provider can be used with VSCode's TreeView, you can be certain that this will work with FirecampTreeView
  const treeDataProvider = useFileSystemDataProvider();

  // You can also hook into `onClick` and `onContextMenu` events, try `onClick={console.log}` to explore
  return <FirecampTreeView treeDataProvider={treeDataProvider} />;
};
0.0.1-1

2 years ago

0.0.1-0

2 years ago