Skip to content

dschiese/draggableList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

draggableList

A Streamlit custom component for rendering a draggable list and returning user interaction back to Python.

Features

  • Drag-and-drop list UI inside Streamlit
  • Simple Python API via my_component
  • Works as an embeddable custom Streamlit component

Repository Layout

  • my_component/ - Python wrapper and frontend bundle
  • my_component/frontend/ - frontend source code
  • my_component/example.py - minimal usage example

Installation

This package is currently intended for local/development usage.

git clone https://github.com/dschiese/draggableList.git
cd draggableList
pip install -e .

Usage

import streamlit as st
from my_component import my_component

items = ["A", "B", "C"]
result = my_component("Demo", items, key="demo-list")

st.write("Component result:", result)

Run the demo:

streamlit run my_component/example.py

Development

Install dev dependencies (optional):

pip install -e .[devel]

Frontend dependencies are managed in my_component/frontend/package.json.

License

MIT (see LICENSE).

About

Streamlit component for draggable lists

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors