aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
30 lines • 810 B
TypeScript
/**
* Magnetic Element Hook
* Creates magnetic attraction effect where elements follow the cursor
*/
import { CSSProperties } from 'react';
import { Vector2D } from '../../types/common';
/**
* Magnetic element options
*/
export interface UseMagneticElementOptions {
strength?: number;
range?: number;
speed?: number;
maxDistance?: number;
returnSpeed?: number;
onActivate?: () => void;
onDeactivate?: () => void;
disabled?: boolean;
}
/**
* Hook for magnetic element effect
*/
export declare const useMagneticElement: (options?: UseMagneticElementOptions) => {
ref: import("react").MutableRefObject<HTMLElement | null>;
position: Vector2D;
isActive: boolean;
style: CSSProperties;
reset: () => void;
};
//# sourceMappingURL=useMagneticElement.d.ts.map