St Card screenshot

St Card

Author Avatar Theme by Gamcoh
Updated: 10 May 2024
126 Stars

Streamlit component for UI cards

Overview

The st-card Streamlit Component offers a versatile tool for creating user-friendly UI cards that enhance interactivity within your Streamlit applications. Designed by the creative minds at @gamcoh and @Pernod Ricard, this component allows developers to easily incorporate visually appealing cards that can respond to user actions. Whether for displaying images, text, or additional functionalities, st-card elevates the user experience by facilitating customizations and controls.

Features

  • Easy Installation: Install the st-card component with a simple pip command, making it accessible for all developers.
  • Local Image Support: Use local images without the need for URLs, giving you full control over image management.
  • Custom Click Handling: Implement callbacks to define user interactions when a card is clicked, enhancing engagement.
  • Dynamic Sizing: Adjust the card size to fit your layout needs effortlessly by utilizing the use_column_width=True option.
  • Editable CSS: Customize the appearance of your cards with editable CSS options for “card”, “title”, “text”, “filter”, and “div” to match your design aesthetics.
  • Multiple Descriptions: Provide various descriptions within a single card to present information clearly and effectively, catering to diverse user needs.