Image Zoom Component
A Reflex custom component image-zoom - based on react-medium-image-zoom.
Check out the live demo.
Installation
pip install reflex-image-zoom
Usage
I've currently wrapped no props, simply pass the image as a child of the component.
import reflex as rx
from reflex_image_zoom import image_zoom
def index() -> rx.Component:
return rx.center(
rx.vstack(
rx.heading("Welcome to Reflex!", size="9"),
image_zoom(
rx.image(src="https://picsum.photos/800/500", width="400px"),
),
align="center",
spacing="7",
font_size="2em",
),
height="100vh",
)
app = rx.App()
app.add_page(index)
Release files for reflex-image-zoom 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 | |
|---|---|---|---|
| reflex-image-zoom-0.0.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reflex_image_zoom-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 kB
Release files / reflex-image-zoom-0.0.2.tar.gz
| Download URL | reflex-image-zoom-0.0.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdb43b6e677936a8c4144b50594e27f3be9dd38c35b76920640f36fb030ef5c6
|
|
BLAKE2b-256 checksum How to use checksums |
940a6cf2c9b3fcc7a44c136df038d55f39b8b8d876e736187ca07bfb56a2f830
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Release files / reflex_image_zoom-0.0.2-py3-none-any.whl
| Download URL | reflex_image_zoom-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae1233a199863b70bc6fb10141439c150cf2b02b5ef3d0069271b92b42d05090
|
|
BLAKE2b-256 checksum How to use checksums |
a2c93360864ed46398ba6899fc841c8580c03740b3f7042b92a01efab3d61165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|