Reflex custom component image-zoom
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file reflex-image-zoom-0.0.2.tar.gz
.
File metadata
- Download URL: reflex-image-zoom-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb43b6e677936a8c4144b50594e27f3be9dd38c35b76920640f36fb030ef5c6 |
|
MD5 | 9c6f6097b96306c4dead781a9267b3d6 |
|
BLAKE2b-256 | 940a6cf2c9b3fcc7a44c136df038d55f39b8b8d876e736187ca07bfb56a2f830 |
File details
Details for the file reflex_image_zoom-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: reflex_image_zoom-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1233a199863b70bc6fb10141439c150cf2b02b5ef3d0069271b92b42d05090 |
|
MD5 | 4ae31956451ce93bddd32b730fffe0c5 |
|
BLAKE2b-256 | a2c93360864ed46398ba6899fc841c8580c03740b3f7042b92a01efab3d61165 |