Prepare your Component
A bi-directional Streamlit Component varies slightly from a pure Python library in that it must contain pre-compiled frontend code. This is how base Streamlit works as well; when you pip install streamlit, you are getting a Python library where the HTML and frontend code contained within it have been compiled into static assets.
The component-template GitHub repo provides the folder structure necessary for PyPI publishing. But before you can publish, you'll need to do a bit of housekeeping:
Give your Component a name, if you haven't already
Rename the template/my_component/ folder to template/<component name>/
Pass your component's name as the the first argument to declare_component()
Edit MANIFEST.in, change the path for recursive-include from package/frontend/build * to <component name>/frontend/build *
