Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_html_sidebar-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

streamlit_html_sidebar-0.1.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file streamlit_html_sidebar-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit_html_sidebar-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for streamlit_html_sidebar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 98a3ae64cbf1736936a191a7cb68d2bff01e933b1eb53ce8d7071cc3ac8830de
MD5 a353c2d58d49db9ae235ea76bc4b13b3
BLAKE2b-256 3e4f85b60b41b6bef4b81dfe6b5f8a6666712b7ad161097360d393ef432c4c7b

See more details on using hashes here.

File details

Details for the file streamlit_html_sidebar-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_html_sidebar-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33e04a48d716d761796e614eeaf9fea9f555f7bc971e4389116b03c62c9de831
MD5 a268124615a765a86c693dee0527d942
BLAKE2b-256 50f0367ec6df1abfb91aa26211d66051a7555a308abf7e56d131a89aa0235377

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