UNPKG

aura-glass

Version:

A comprehensive glassmorphism design system for React applications with 142+ production-ready components

33 lines 902 B
/** * Ambient Tilt Hook * Provides subtle ambient tilting effects based on device orientation or cursor position */ import { CSSProperties } from 'react'; /** * Tilt configuration options */ export interface UseAmbientTiltOptions { maxTilt?: number; reverse?: boolean; perspective?: number; scale?: number; speed?: number; easing?: string; glare?: boolean; gyroscope?: boolean; onTilt?: (tiltX: number, tiltY: number) => void; } /** * Hook for ambient tilt effects */ export declare const useAmbientTilt: (options?: UseAmbientTiltOptions) => { ref: import("react").MutableRefObject<HTMLElement | null>; tiltX: number; tiltY: number; isHovering: boolean; transformStyle: CSSProperties; glareStyle: CSSProperties; reset: () => void; setTilt: (tiltX: number, tiltY: number) => void; }; //# sourceMappingURL=useAmbientTilt.d.ts.map