Anybody interested in simple component to float containers?

Hi,
Sorry for getting back to you this late, but I have release a new version (0.3.4) and you should now have access to those transition arguments!

Let me know if there are still issues!

1 Like

Hello! Is there a way to use the float box container to display a streamlit widget. Like the camera widget for example?

For streamlit components/widgets, I would not recommend the float-box function because thats really for markdown content. Instead, I would recommend putting the widget in an st.container and floating the container.

from streamlit_float import *

my_container = st.container()

with my_container:
    # add your widget here
    float_parent()

Note that you can add your own css inside float_parent to position the container and place it where you want on the page. There is a css helper function called float_css_helper as well.

1 Like

Thanks for the quick answer! I’ll give it a try

1 Like

take a look at the github for some usage examples like for the css helper function