Table of contents generator

Zikojs based Interactive Table of Contents component for Streamlit.

Showcase

ziko-st-toc demo

Visit : https://ziko-st-toc-demo.streamlit.app/

Installation instructions


pip install ziko-st-toc

Usage instructions


import streamlit as st

from ziko_st_toc import table_of_contents

st.title('Streamlit Table Of contents')

with st.sidebar:

table_of_contents()

st.header('Header I')

# Content ..

st.header('Header II')

# Content ..

st.subheader('Sub Header II-1')

# Content ..

st.subheader('Sub Header II-2')

# Content ..

st.subheader('Sub Header II-3')

# Content ..

st.header('Header III')

# Content ..