Collapsible checkbox tree

Hello!

I am fresh man in python, but have one task on my job with it. I have to make a collapsible tree with checkbox and color rectangle near every tree element(checkbox, label, color rect). With them user can choose which lines will be shown on the graph from dash core components. Does anyone already did this? Example is shown on the figure (found it in react components site, but can’t convert it to dash app and add color rects)