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)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit_page_link_params-0.3.3.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_page_link_params-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / streamlit_page_link_params-0.3.3.tar.gz
| Download URL | streamlit_page_link_params-0.3.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ac8c98503d6c8de55b0cecf7d4f59bae05aa679dd9860a88823ea97674183ae
|
|
BLAKE2b-256 checksum How to use checksums |
0dc96c2599e78977fa91fbd8d770dc2faae7bb2254ad4bc160034a99416e4344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / streamlit_page_link_params-0.3.3-py3-none-any.whl
| Download URL | streamlit_page_link_params-0.3.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70b785e72ffe3a39dca9489386aa975aed69574ce8766240eed12fb03c8283ec
|
|
BLAKE2b-256 checksum How to use checksums |
e5b679d5b6e5f30b38265b26726193d4137f68ae7dd7e3ff000c2fecb5e7b6c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|