Skip to main content

Card components for streamlit app.

Project description

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"

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-multiple-cards-components-0.1.0.tar.gz (346.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file streamlit-multiple-cards-components-0.1.0.tar.gz.

File metadata

File hashes

Hashes for streamlit-multiple-cards-components-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0920c52ecb052592e25214d2c0eaf3b3c1db8a4964015f424646c41fb4f8071f
MD5 d11c73011eaac1db77b9c31af33093ff
BLAKE2b-256 9062aa1a28659f202e360365372232744e1860a79ba9fff07c00573c8e776936

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_multiple_cards_components-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83889bc78c7f113c532866bda438814d7bd33c3742e4cb87369412e3c1117586
MD5 11f47c70e780f6e432a49dcc6ffec948
BLAKE2b-256 8de373c62750611017e9da17cc82779f62deb0bc2df3e70827465b49a731bc3a

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