@nipe-solutions/react-spring-bottom-sheet
Version:
Accessible and composable bottom sheets for React
17 lines (16 loc) • 522 B
TypeScript
import type { MotionAdapter } from './types.js';
interface AnimationOptions {
type: 'spring';
velocity: number;
stiffness: number;
damping: number;
onUpdate(value: number): void;
onComplete(): void;
}
interface AnimationControls {
stop(): void;
}
type AnimationDriver = (from: number, to: number, options: AnimationOptions) => AnimationControls;
export declare function createMotionAdapter(driver?: AnimationDriver): MotionAdapter;
export declare const motionAdapter: MotionAdapter;
export {};