Streamlit Navbar Component
Import
from streamlit_cards.card_component import card
Implementation
clicked = card(3, [
{"title":"1000", "text":"hello", "style":{"color":"blue"}},
{"title":"New","text":"2000", "style":{"color":"red"}},
{"title": "New", "text": "2000", "style": {"background": base64_string}}
]
)
Explaination
- 3 is the number of columns you want in a row.
- you can add multiple cards at a time
- You can pass following params in the style section of each card.
background: "linear-gradient(135deg, #ff9a9e, #fad0c4)",
width: "80%",
height: "200px",
blur: 10,
elevation: 15,
border_radius: "10px",
color: "#ffffff",
font_size: "20px",
border: "none",
boxShadow:"0px 10px 20px rgba(0, 0, 0, 0.3)",
backdropFilter: "blur(10px)",
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
padding: "20px",
textAlign: "center",
cursor: "pointer",
transition: "transform 0.2s ease-in-out"
Metadata
Release files for streamlit-multiple-cards-components 0.1.0
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-multiple-cards-components-0.1.0.tar.gz | 346.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_multiple_cards_components-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 695.4 kB
Release files / streamlit-multiple-cards-components-0.1.0.tar.gz
| Download URL | streamlit-multiple-cards-components-0.1.0.tar.gz |
|---|---|
| Size | 346.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0920c52ecb052592e25214d2c0eaf3b3c1db8a4964015f424646c41fb4f8071f
|
|
BLAKE2b-256 checksum How to use checksums |
9062aa1a28659f202e360365372232744e1860a79ba9fff07c00573c8e776936
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / streamlit_multiple_cards_components-0.1.0-py3-none-any.whl
| Download URL | streamlit_multiple_cards_components-0.1.0-py3-none-any.whl |
|---|---|
| Size | 348.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83889bc78c7f113c532866bda438814d7bd33c3742e4cb87369412e3c1117586
|
|
BLAKE2b-256 checksum How to use checksums |
8de373c62750611017e9da17cc82779f62deb0bc2df3e70827465b49a731bc3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|