Skip to main content

Card components for streamlit app.

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_cards-0.1.0.tar.gz (346.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_cards-0.1.0-py3-none-any.whl (348.5 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_cards-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit_cards-0.1.0.tar.gz
  • Upload date:
  • Size: 346.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for streamlit_cards-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f08644a48d2104e23cd496b3dbe869ccc714dc8cd8321281e540b059d2c42a5
MD5 244cfd74133031d2582c6fb9cac12a4a
BLAKE2b-256 a5d90ad5eb6b3418e2df8a8d39d01c8f95349077f6288467aeb19827debfa220

See more details on using hashes here.

File details

Details for the file streamlit_cards-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_cards-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96d60ddb37653a019c6326e114cddbbf93dfbdcbde6cb7ca0f46c0946f3485b0
MD5 6395084cb0f06148c4284d6d4dfcd9f6
BLAKE2b-256 db747d58fc1624d5ab90b3474373b6feee52e699dccc67b5c7947f19e33bd6b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page