Reflex custom component img-comparison-slider
Project description
img-comparison-slider
A Reflex custom component img-comparison-slider.
Installation
pip install reflex-img-comparison-slider
Usage
import reflex as rx
from reflex_img_comparison_slider import img_comparison_slider
def index() -> rx.Component:
return rx.center(
rx.vstack(
rx.heading("Image Comparison Slider", size="7"),
img_comparison_slider(
rx.image(src="/green-leaves.webp", slot="first"),
rx.image(src="/green-leaves-blurred.webp", slot="second"),
),
align="center",
spacing="7",
),
height="100vh",
)
Slider Props
| Name | Key | Values | Description |
|---|---|---|---|
| Position | value |
int |
Position of the divider in percents. Must be between 0 and 100. (default: 50) |
| Hover | hover |
bool |
Automatically slide on mouse over. (default: False) |
| Direction | direction |
"vertical", "horizontal" |
Direction of the slider. (default: "horizontal") |
| Keyboard | keyboard |
"enabled", "disabled |
Enable/disable slider position control with the keyboard. (default: enabled) |
| Handle | handle |
bool |
Enable/disable dragging by handle only. (default: False) |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reflex_img_comparison_slider-0.0.1.tar.gz.
File metadata
- Download URL: reflex_img_comparison_slider-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1715ee4e2938b5d431b81c37ce0dee72e42afff0793c8cfcc7c4f205f883159
|
|
| MD5 |
d4695ce9b7204531ae076dab719aad43
|
|
| BLAKE2b-256 |
4173a62ca5eec785c76d33ebe7a9bba33b2a3830e1d2b8165dc2aba7646ec5a8
|
File details
Details for the file reflex_img_comparison_slider-0.0.1-py3-none-any.whl.
File metadata
- Download URL: reflex_img_comparison_slider-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0938cf9b8f742592455ad2bb0a0a59a4cc0013241ce69316b048f6acc823bfb5
|
|
| MD5 |
a58e744dcad4206f69788f80d62090a4
|
|
| BLAKE2b-256 |
4708a893450ea783f9738044743a7e9587a194e0b6fe94bd54ab77ebe5a59b93
|