Reflex custom component intersection-observer
Project description
intersection-observer
React to a component coming into view using Reflex event handler.
Installation
pip install reflex-intersection-observer
Usage
import reflex as rx
from reflex_intersection_observer import intersection_observer
def index():
return rx.vstack(
rx.box(height="150vh"),
intersection_observer(
on_intersect=rx.console.log("Component visible!"),
),
)
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-intersection-observer-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ab5f66ca0c18defe2a0d1dda89b5f8e05c538b32a5f1bbf609dcdd7142f5b8 |
|
MD5 | 35f1abc3bbf099cbd27b12f60f579762 |
|
BLAKE2b-256 | 1aa471a8949f565c69695efa0149fe646539623f341cd90a355efb4107f288d3 |
Close
Hashes for reflex_intersection_observer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a61677c1a5a5b3f0a8620af3e35b96db8ada09c062c4205a92a06907020bc81 |
|
MD5 | 80461f49303f79b0cf5284f37ea4374d |
|
BLAKE2b-256 | e2be4d1cd675bb24d54aae9522df71b7e19ea0ef10c9f02e8828aa59539a9c99 |