Skip to main content

Streamlit zoom-buttons component


Streamlit zoom buttons component

Installation instructions

pip install st-zoom-buttons

Usage instructions

import streamlit as st

from st_zoom_buttons import st_zoom_buttons

clicked_button = st_zoom_buttons()

st.write(f"Clicked: {clicked_button}")

Function interface

def st_zoom_buttons(
    key=None,
    font_size="10px",
    width="35px",
    border_radius: int = 0,
    title: str = "",
    disabled: list[str] | None = None,
    on_zoom_in: Optional[Callable[[], None]] = None,
    on_zoom_out: Optional[Callable[[], None]] = None,
    on_zoom_reset: Optional[Callable[[], None]] = None,
) -> str:

Metadata

Release files for st-zoom-buttons 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st-zoom-buttons 0.0.4
File Size Uploaded
st_zoom_buttons-0.0.4.tar.gz 274.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for st-zoom-buttons 0.0.4
File Interpreter ABI Platform
st_zoom_buttons-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 551.2 kB

Release files / st_zoom_buttons-0.0.4.tar.gz

Download URL st_zoom_buttons-0.0.4.tar.gz
Size 274.7 kB
Tags Source
SHA-256 checksum
How to use checksums
672c153d7dd20fc5ea84cb1642ff3a5817b3ce1ba2b3f53d0a9460d78a407192
BLAKE2b-256 checksum
How to use checksums
1c2e3f81f770342fe4ecac40155987f085c6fa90195a1a474289d2fa1d0d57ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / st_zoom_buttons-0.0.4-py3-none-any.whl

Download URL st_zoom_buttons-0.0.4-py3-none-any.whl
Size 276.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c6d584dd39fa66f502069300beb43f9649dd408634da081368b37b8a3077fb1
BLAKE2b-256 checksum
How to use checksums
073140184533473cf5062d0005cb6f5f0c75a3e58fab96e40b35cbcaba0f590c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page