Skip to main content

Streamlit Navbar Component

Import

from streamlit_cards.streamlit_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-cards 0.1.0

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-cards 0.1.0
File Size Uploaded
streamlit_cards-0.1.0.tar.gz 346.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-cards 0.1.0
File Interpreter ABI Platform
streamlit_cards-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 695.1 kB

Release files / streamlit_cards-0.1.0.tar.gz

Download URL streamlit_cards-0.1.0.tar.gz
Size 346.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0f08644a48d2104e23cd496b3dbe869ccc714dc8cd8321281e540b059d2c42a5
BLAKE2b-256 checksum
How to use checksums
a5d90ad5eb6b3418e2df8a8d39d01c8f95349077f6288467aeb19827debfa220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / streamlit_cards-0.1.0-py3-none-any.whl

Download URL streamlit_cards-0.1.0-py3-none-any.whl
Size 348.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96d60ddb37653a019c6326e114cddbbf93dfbdcbde6cb7ca0f46c0946f3485b0
BLAKE2b-256 checksum
How to use checksums
db747d58fc1624d5ab90b3474373b6feee52e699dccc67b5c7947f19e33bd6b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

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