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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55f23e54e6b82832ae1e702153a740e76f90d724aa78dbed4ea7184480e3e2f1 |
|
MD5 | 38670966bcc23461f074e396a0627a15 |
|
BLAKE2b-256 | 0feb480b331770387360615bd30924f8b60e5babfbb0ed52ab0134c6cf1aa88c |
Close
Hashes for reflex_intersection_observer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a370c2549c47aedb4f75c89bb2bd485be6215181b91cd7bf20736e5080f3aa20 |
|
MD5 | 8fd742ccf06a2a53d7d7756a1e15f2a3 |
|
BLAKE2b-256 | aa0604aaa09465994cf2db88a400d0ce832124ada0c764fe493400d6ce0a61ba |