UNPKG

react-horizontal-scrolling-menu

Version:

Horizontal scrolling menu component for React with per-item visibility tracking. Supports mouse and touch devices, SSR-safe.

17 lines (16 loc) 465 B
import { ItemsMap } from '../ItemsMap'; import { observerOptions } from '../settings'; import type { Refs } from '../types'; interface Props { items: ItemsMap; itemsChanged: string; options: typeof observerOptions; refs: { current: Refs; }; root: { current: Element | null; }; } declare function useIntersectionObserver({ items, itemsChanged, refs, options, root, }: Props): void; export default useIntersectionObserver;