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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_page_link_params-0.3.3.tar.gz.
File metadata
- Download URL: streamlit_page_link_params-0.3.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ac8c98503d6c8de55b0cecf7d4f59bae05aa679dd9860a88823ea97674183ae
|
|
| MD5 |
e4a032eac641a29aa9084a661fdcf52f
|
|
| BLAKE2b-256 |
0dc96c2599e78977fa91fbd8d770dc2faae7bb2254ad4bc160034a99416e4344
|
File details
Details for the file streamlit_page_link_params-0.3.3-py3-none-any.whl.
File metadata
- Download URL: streamlit_page_link_params-0.3.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70b785e72ffe3a39dca9489386aa975aed69574ce8766240eed12fb03c8283ec
|
|
| MD5 |
a7976afe7531e7e3f79a73f9af92df53
|
|
| BLAKE2b-256 |
e5b679d5b6e5f30b38265b26726193d4137f68ae7dd7e3ff000c2fecb5e7b6c6
|