Streamlit RockyRoad Tools
Project description
Streamlit Rocky Road Tools
A collection of custom Streamlit components and tools.
Components
st_notification_banner
A customizable notification bar component for Streamlit applications.
Features:
- Displays notification messages with optional "Learn more" links
- HTML message support - Rich text with tags like
<strong>,<em>,<p>, etc. - Persistent dismissal using localStorage
- Customizable styling with black background and styled buttons
- React + TypeScript implementation
- Full width layout within Streamlit constraints
Installation:
pip install streamlit-rockyroad-tools
Usage:
import streamlit as st
from streamlit_rockyroad_tools import st_notification_banner
# Basic usage
st_notification_banner(
message="This is a notification from our sponsors.",
learn_more="https://example.com",
key="my_notification"
)
# HTML message support
st_notification_banner(
message="<p>Our new <strong>Widgets Incentive Program</strong> has launched!</p>",
learn_more="https://example.com/parts",
key="html_notification"
)
# Without Learn More button (learn_more is optional)
st_notification_banner(
message="<p>Simple notification without a Learn More button.</p>",
key="simple_notification"
)
Development
Each component has its own frontend directory with React/TypeScript source code.
To develop the notification bar:
cd st_notification_banner/frontend
npm install
npm start
Then run your Streamlit app in another terminal:
streamlit run st_notification_banner/my_notification_banner_example.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_rockyroad_tools-0.0.14-py3-none-any.whl.
File metadata
- Download URL: streamlit_rockyroad_tools-0.0.14-py3-none-any.whl
- Upload date:
- Size: 507.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce2daf62c24ff9b00fb30e4f389b481ad719f1a1660edb8084efe0a038367cd3
|
|
| MD5 |
33cf30de7c84eaf1226f00f4fd29005f
|
|
| BLAKE2b-256 |
4cb53d8b88e2103eacfd4975742cba9ebc97183754ed823f7a6330a5ef149455
|