Streamlit Component template in Vue.js
A Vue.js scoped slot which sends parameters from Streamlit Python script into args
props of your component.
Copy paste of the original component-template quickstart.
$ python3 -m venv venv # create venv
$ . venv/bin/activate # activate venv
$ pip install streamlit # install streamlit
$ cd my_component/frontend
$ npm install # Install npm dependencies
$ npm run start # Start the Webpack dev server
$ . venv/bin/activate # activate the venv you created earlier
$ streamlit run my_component/__init__.py # run the example
my_component/frontend/src/MyComponent.vue
.
args
props.my_component/__init__.py
.Author: andfanilo
Source Code: https://github.com/andfanilo/streamlit-component-template-vue
#vuejs #vue #javascript