nicedouble / StreamlitAntdComponents

A Streamlit component to display Antd-Design
https://nicedouble-streamlitantdcomponentsdemo-app-middmy.streamlit.app/
MIT License
409 stars 28 forks source link

[Feature Request] Drag-and-drop tree #65

Open not-an-llm opened 1 month ago

not-an-llm commented 1 month ago

Problem

I'd like to provide a way for my users to quickly reorder tree elements using a drag-and-drop interface. Ant Design has draggable trees defined here https://ant.design/components/tree#tree-demo-draggable

However, there isn't really anything like this supported in Streamlit today. Probably the most similar library is the Streamlit Sortables library which allows drag-and-drop of elements between containers. But it isn't really the same as doing it wihtin a tree.

Request

It would be amazing to have this feature introduced into Streamlit's community, and StreamlitAntdComponents seems like the right place for this.

Thanks for creating this library!