rooks
Version:
Collection of awesome react hooks
20 lines (19 loc) • 486 B
TypeScript
/**
* Spring configuration options
*/
interface SpringConfig {
stiffness?: number;
damping?: number;
mass?: number;
precision?: number;
}
/**
* useSpring hook
*
* @param targetValue The target value to animate to
* @param config Spring configuration
* @returns The current value of the spring animation
* @see https://rooks.vercel.app/docs/hooks/useSpring
*/
declare function useSpring(targetValue: number, config?: SpringConfig): number;
export { useSpring };