@myelmut/design-system 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/index.d.ts
CHANGED
|
@@ -719,10 +719,10 @@ export declare function useIsMobile(): boolean;
|
|
|
719
719
|
* @param threshold - Intersection ratio at which the callback is triggered (e.g., `0.1`).
|
|
720
720
|
* @param rootMargin - Margin around the root bounding box (e.g., `'0px'`, `'10px 0px'`).
|
|
721
721
|
*/
|
|
722
|
-
export declare function useMultiIntersectionObserver({
|
|
722
|
+
export declare function useMultiIntersectionObserver({ targets, callback, root, threshold, rootMargin }: UseMultiObserverOptions): void;
|
|
723
723
|
|
|
724
724
|
declare type UseMultiObserverOptions = {
|
|
725
|
-
|
|
725
|
+
targets: Element[];
|
|
726
726
|
callback: (entry: IntersectionObserverEntry, element: HTMLElement) => void;
|
|
727
727
|
root?: Element | null;
|
|
728
728
|
threshold?: number;
|
package/package.json
CHANGED
|
File without changes
|