Skip to main content

An alternative to the official Streamlit page_link component that supports query parameters.

Project description

streamlit-page-link-params

An alternative to the official Streamlit page_link component that supports query parameters.

Installation instructions

Requirements: streamlit >= 1.37, Python >= 3.8

pip install streamlit-page-link-params

Usage instructions

Basic, no params

page_link("pages/p1.py", label="go to p1")

Basic, use_container_width=True, with params: use_container_width=true

page_link("pages/p1.py", label="go to p1", use_container_width=True, query_params={"use_container_width": "true"})

use html, with params: html=true

page_link_html('<a href="/p1" style="font-size: 30px;">go to p1</a>', query_params={{"html": "true"}})

use html, with style, with params: html=true&with_style=color

page_link_html("""
<style>
.myPageLink {
    color: green !important;
}
</style>
<a href="/p1" class="myPageLink">go to p1</a>
""", query_params={"html": "true", "with_style": "color"})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_page_link_params-0.3.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_page_link_params-0.3.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page