A Streamlit component that creates a customizable sidebar with HTML content
Project description
Streamlit HTML Sidebar
A Streamlit component that allows you to create a customizable HTML sidebar that slides in from the right side of the screen.
Features
- Create a sidebar with custom HTML content
- Customize the width of the sidebar
Installation
pip install streamlit-html-sidebar
Usage
import streamlit as st
from streamlit_html_sidebar import create_sidebar
st.title("Streamlit HTML Sidebar Example")
# Create a button to open the sidebar
if st.button("Open Sidebar"):
# Create a sidebar with custom HTML content
content = """
<div style="padding: 20px;">
<h2>Custom Sidebar</h2>
<p>This is a custom sidebar created with streamlit-html-sidebar.</p>
</div>
"""
create_sidebar(content, width="400px")
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 Distribution
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