Skip to main content

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"})

Metadata

Release files for streamlit-page-link-params 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-page-link-params 0.3.3
File Size Uploaded
streamlit_page_link_params-0.3.3.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-page-link-params 0.3.3
File Interpreter ABI Platform
streamlit_page_link_params-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.0

2 release files

0.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page