Streamlit component that allows you to add Chrono Timeline
Project description
streamlit-custom-component
Streamlit port of the react-chrono library. Allows for the rendering of timelines with cards.
Installation instructions
pip install streamlit-chrono
Usage instructions
The streamlit_chrono API is similar to react-chrono interface.
See the documentation at https://github.com/prabhuignoto/react-chrono
import streamlit as st
import json
from streamlit_chrono import chrono
items=[
{"title": "Home"},
{"title": "Workflow"},
{"title": "Diagnostic Features"},
{"title": "Referential Groups"},
{"title": "Review Changes"},
{"title": "Run Workflow"},
]
active_item_index=0
current_item = chrono(
items=items,
active_item_index=active_item_index
)
st.write(json.dumps(current_item, indent=4))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit-chrono-0.0.1.tar.gz
(570.3 kB
view details)
File details
Details for the file streamlit-chrono-0.0.1.tar.gz.
File metadata
- Download URL: streamlit-chrono-0.0.1.tar.gz
- Upload date:
- Size: 570.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49989f719ed1360b9f230bf924541d60d84cb2b6eeb32172b24ffc1942da192e
|
|
| MD5 |
0f8e1d378e04acc201d5c4ea34e7d1ea
|
|
| BLAKE2b-256 |
9bd311f628b20521c13bbf6c75807d13afe807b366cfa78c8141478ee1e66e17
|