Skip to main content

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

image-zoom

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflex-image-zoom-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

reflex_image_zoom-0.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for reflex-image-zoom-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bdb43b6e677936a8c4144b50594e27f3be9dd38c35b76920640f36fb030ef5c6
MD5 9c6f6097b96306c4dead781a9267b3d6
BLAKE2b-256 940a6cf2c9b3fcc7a44c136df038d55f39b8b8d876e736187ca07bfb56a2f830

See more details on using hashes here.

File details

Details for the file reflex_image_zoom-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_image_zoom-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae1233a199863b70bc6fb10141439c150cf2b02b5ef3d0069271b92b42d05090
MD5 4ae31956451ce93bddd32b730fffe0c5
BLAKE2b-256 a2c93360864ed46398ba6899fc841c8580c03740b3f7042b92a01efab3d61165

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page