You need to create a grid with tree like structure that has your onw custom theme and it's verry flexible.
This is a component that controls user interactions and state for you so you can create tree/grid components. It uses a render prop which gives you maximum flexibility with a minimal API because you are responsible for the rendering of everything and you simply apply props to what you're rendering.
This differs from other solutions which render things for their use case and then expose many options to allow for extensibility resulting in a bigger API that is less flexible as well as making the implementation more complicated and harder to contribute to.
- Install this component
npm install react-tree-grid-flat
- Install react-virtualized
npm install react-virtualized
(if not already installed) - Import tree in your component
import VirtualTree from "react-tree-grid-flat";
- Pass an array to it.
inteface Tree {...any, children: Tree[]}[]}
https://codesandbox.io/s/virtual-tree-from-npm-g0h7v
- Clone this project
- Create a new branch along the lines of
feature/newcomponent
- Install dependencies
npm install
- Start the local development environment running
npm run storybook
- Add your changes
- Add tests for your changes
- If you add new component, make sure to add that in the storybook editing the
stories/index.js
file - Add the changes to git with
git add -A .
- Commit your change using "Angular Commit Message Conventions" (Read more) using
npm run commit
and a wizard will guide you. - Push the changes to origin and create a pull request.