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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abbc450eb3b95f0df25c4e57d1c9848ce79d9ffff87ce6413f590052d0aa6931 |
|
MD5 | 235e40f909bfc94f69ec49cf64190100 |
|
BLAKE2b-256 | a73f91cb7e30f5c7ab08bae862214c9b3a007258b70b894b090eb9792b5fa9e8 |
Close
Hashes for reflex_intersection_observer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d8eff40bc29681edb759ac2a92e64281b286e6f2a6d72a5e3cfc49394fc38b |
|
MD5 | faa87195b5be359dabf23f658dfe023f |
|
BLAKE2b-256 | 6585641ece2b008666049f8817b5afc571dea27874f62d99da6b1a7c57e0a43d |