I'm not sure if you prefer an Issue or a pull request for something so trivial, but the second code snippet in the readme file is missing Section in the import statement.
from st_pages import Page, show_pages, add_page_title
add_page_title() # By default this also adds indentation
# Specify what pages should be shown in the sidebar, and what their titles and icons
# should be
show_pages(
[
Page("streamlit_app.py", "Home", "🏠"),
Page("other_pages/page2.py", "Page 2", ":books:"),
Section("My section", icon="🎈️"),
# Pages after a section will be indented
Page("Another page", icon="💪"),
]
)
should have
from st_pages import Page, Section, show_pages, add_page_title
I'm not sure if you prefer an Issue or a pull request for something so trivial, but the second code snippet in the readme file is missing Section in the import statement.
should have