gradio-horizontal-bar
A versatile, collapsible layout component for Gradio 6 apps using gr.HTML. It allows you to create fixed panels at the top or bottom of the screen that can contain any other Gradio component.
Perfect for floating toolbars, real-time log consoles, settings panels, or secondary navigation bars that stay out of the way until needed.
Features and Key Characteristics
- Dual-Positioning: Easily switch between
topandbottomplacement with a single property. - Native Container Support: Works as a standard Gradio context manager (
with HorizontalBar():), allowing you to nest any Gradio component inside. - Gradio 6 Theme Integration: Uses native CSS variables (
--background-fill,--color-accent) to match any theme perfectly in Light or Dark mode.
Installation
pip install gradio-horizontal-bar
Usage
Mode 1: Top Floating Toolbar
import gradio as gr
from gradio_horizontal_bar import HorizontalBar
with gr.Blocks() as demo:
with HorizontalBar(position="top", height=85, open=False):
with gr.Row():
gr.Button("▶️ Start Process", variant="primary")
gr.Button("⏹️ Stop All")
gr.Image("https://picsum.photos/1200/600")
demo.launch()
Mode 2: Bottom Log Console (Pre-opened)
import gradio as gr
from gradio_horizontal_bar import HorizontalBar
with gr.Blocks() as demo:
gr.Markdown("# Main Content Area")
with HorizontalBar(position="bottom", height=250, open=True):
gr.Markdown("### 📝 System Logs")
gr.Textbox(lines=8, interactive=False, placeholder="Waiting for logs...")
demo.launch()
| Property | Type | Default | Description |
|---|---|---|---|
position |
Literal["top", "bottom"] |
"bottom" |
Where the bar is anchored (top or bottom of the screen). |
open |
bool |
True |
Whether the bar starts expanded (True) or collapsed (False). |
height |
int | str |
320 |
Height of the bar (pixels if int, or any CSS unit if str). |
width |
int | str |
"100%" |
Width of the bar (horizontally centered). |
bring_to_front |
bool |
False |
If True, gives the bar a higher z-index to overlap other sidebars. |
rounded_borders |
bool |
True |
Whether to apply rounded corners to the floating edges. |
label |
str | None |
None |
Optional label for the component context. |
visible |
bool |
True |
Whether the component is visible on the screen. |
License
Apache 2.0
Metadata
Release files for gradio-horizontal-bar 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gradio_horizontal_bar-0.0.2.tar.gz | 4.6 kB | Without provenance | Details for gradio_horizontal_bar-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gradio_horizontal_bar-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for gradio_horizontal_bar-0.0.2-py3-none-any.whl |
Total release size: 9.8 kB
Release files / gradio_horizontal_bar-0.0.2.tar.gz
| Download URL | gradio_horizontal_bar-0.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
270a5734553de1f653e16c4f966949b9c0a90630ba972b22972f7c751b4c5010
|
|
BLAKE2b-256 checksum How to use checksums |
525e7055b09d583159467a8f75f5f8e6a05e05bd9b850f74f6503388a968e538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / gradio_horizontal_bar-0.0.2-py3-none-any.whl
| Download URL | gradio_horizontal_bar-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11b995cc4ac7450d7a4b9a54d48aab12c34fcebf6143042a176840a0f484e451
|
|
BLAKE2b-256 checksum How to use checksums |
698a824e59d69d4c3683c60736825d712ccb5e3f87dece6fb4d0cef3c09330e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for gradio-horizontal-bar 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.