@past3lle/carousel-hooks
Version:
PASTELLE carousel animation hooks built on top of @usegesture and react-springs
12 lines • 479 B
TypeScript
import { SizeOptions, WithWindowSizeOptions } from '../types';
export default function useScrollZoneRefs(axisDirection: 'x' | 'y', sizeOptions?: SizeOptions, auxOptions?: WithWindowSizeOptions): {
refs: {
scrollingZoneTarget: HTMLElement | null;
itemSize: number;
};
refCallbacks: {
setScrollingZoneRef: (newNode: any) => void;
setItemSizeRef: (newNode: any) => void;
};
};
//# sourceMappingURL=useScrollZoneRef.d.ts.map