components.declare_component(“my_component”,url=“http://localhost:3001”)
Hey @sum, this is usually used for local development and besides that you could pass any URL there you want to server the component from.
But from this example, usually you want to serve the custom component from the file path which makes the component work out of the box when someone copies it over or installs it via pip
.
Thanks @raethlein will try this. Actually, I was trying a way to customize the file-uploader into a (attach a file option) in streamlit which didn’t work well with custom css.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.