Streamlit Component Svelte Template

screenshot of Streamlit Component Svelte Template

Template for building Streamlit components using Svelte for the component's frontend.

Overview:

The Streamlit Component Svelte Template is a repository that provides a template and example code for creating Streamlit components using Svelte (+ Typescript) for the component's frontend. It replicates the component from the Streamlit official templates and is inspired by the use of Svelte in Fanilo Andrianasolo's Named Entity Selection Component. A Streamlit Component consists of a Python API and a frontend built using any web tech. It can be used in any Streamlit app, pass data between Python and frontend code, and can be distributed on PyPI for wider use.

Features:

  • Creates a Python API and a frontend for Streamlit component development
  • Allows passing of data between Python and frontend code
  • Can be distributed on PyPI for wider usage

Summary:

The Streamlit Component Svelte Template provides a convenient starting point for developers to create Streamlit components using Svelte and Typescript. It offers a Python API and a frontend for easy integration with Streamlit apps. With the ability to pass data between Python and frontend code, these components can enhance the functionality and interactivity of Streamlit applications. By following the installation guide, developers can quickly get started with this template and modify both the frontend and Python code to suit their specific needs. For further information and resources, the Streamlit Components documentation, forums, and gallery are recommended, as well as the Svelte tutorial and Svelte documentation.