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
Metadata
Release files for streamlit-rockyroad-tools 0.0.48
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_rockyroad_tools-0.0.48-py3-none-any.whl | Python 3 | none | any | Details |
Release files / streamlit_rockyroad_tools-0.0.48-py3-none-any.whl
| Download URL | streamlit_rockyroad_tools-0.0.48-py3-none-any.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f121c84cc468a1637ba284652599f913643b67613aae81fb09d75479940f930e
|
|
BLAKE2b-256 checksum How to use checksums |
95016016a54f7d5be184d8791ff9b02fb5fc057570446ba7e22d1b60b727a3a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|