New component: streamlit-arborist. Create interactive tree views

Hello, folks!

I recently published a new component for Streamlit called streamlit-arborist. It is based on react-arborist and can be used to visualize hierarchical data structures as interactive tree views.

There is quite a bit of configuration options, but there are even more possibilities for future releases, since react-arborist has a rich API.

Let me know what you think and feel free to suggest features and usage options.

4 Likes

Nice component!!!

A nice to have would be to have the trigger the selection when a branch is selected.

streamlit-arborist 0.3.0 is released!

This version adds the argument select_internal_nodes (False by default). Thanks @Cristian_Andres for opening a feature request with the idea.

When enabled, it changes the selection behavior and allows selecting internal nodes as well.

  • Single-click the icon to toggle open/closed
  • Single-click the label to select
  • Double-click the label to select and toggle
pip install streamlit-arborist==0.3.0