Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
1.0 KiB
TypeScript
Executable File
29 lines
1.0 KiB
TypeScript
Executable File
import { InViewHookResponse, IntersectionOptions } from './index';
|
|
/**
|
|
* React Hooks make it easy to monitor the `inView` state of your components. Call
|
|
* the `useInView` hook with the (optional) [options](#options) you need. It will
|
|
* return an array containing a `ref`, the `inView` status and the current
|
|
* [`entry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry).
|
|
* Assign the `ref` to the DOM element you want to monitor, and the hook will
|
|
* report the status.
|
|
*
|
|
* @example
|
|
* ```jsx
|
|
* import React from 'react';
|
|
* import { useInView } from 'react-intersection-observer';
|
|
*
|
|
* const Component = () => {
|
|
* const { ref, inView, entry } = useInView({
|
|
* threshold: 0,
|
|
* });
|
|
*
|
|
* return (
|
|
* <div ref={ref}>
|
|
* <h2>{`Header inside viewport ${inView}.`}</h2>
|
|
* </div>
|
|
* );
|
|
* };
|
|
* ```
|
|
*/
|
|
export declare function useInView({ threshold, delay, trackVisibility, rootMargin, root, triggerOnce, skip, initialInView, fallbackInView, }?: IntersectionOptions): InViewHookResponse;
|