Skip to main content

A Streamlit component that creates a customizable sidebar with HTML content

Project description

PyPI version codecov

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.

Streamlit HTML Sidebar

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.2.0.tar.gz (6.1 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.2.0-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for streamlit_html_sidebar-0.2.0.tar.gz
Algorithm Hash digest
SHA256 559fadee4789254318c1e9f5a75ebe117e538af0f18309ac9c5dbe8323bf1875
MD5 72afa8520f301e3e4a0b7d1ffcc1b137
BLAKE2b-256 454eb2f647c8590bfa34a792afc5414cfdc27346431b4db4f42101020849a9b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_html_sidebar-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a169c95bc0880e0036101d09de8f0c8f360ecca2d0f3dc236cca36d4073e33a4
MD5 18b6f1a29a5fbb498142f04119996524
BLAKE2b-256 b56d045ed3f01659a94b38581bd0c3f71ddb1d7355f7571008627f1d0bf95e1e

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