Custom Component: Streamlit Multi-Segment Slider

Good Evening!

I’ve created a multi-handle range slider: drag any number of dividing points to split [min_value, max_value] into that many segments.

pip install streamlit-segment-slider

Github: streamlit-segment-slider

There’s a compact form like a normal input widget and a more decorated form that reflects the chosen values in a pie chart with a legend.

I hope it’s useful for someone. I’m using it to allow a user to set an investment allocation in a financial app.