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
Close
Hashes for reflex_image_zoom-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7db1ef7161cd123005295652055344ea074aea6f22524a85a57888beb1e1d3e7 |
|
MD5 | ac01fbb871d3f3b10a8de9a5189397a3 |
|
BLAKE2b-256 | 2ab53e73cbcbba301648b1ed093dc409b2e7bc6a204d8846ffac7d7615b19936 |