UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

11 lines 449 B
import React, { RefObject } from 'react'; /** * useScrollSync returns scroll event handler to be attached to synchronized scroll elements. * * For example * const handleScroll = useScrollSync([ref1, ref2]); * <div ref={ref1} onScroll={handleScroll}/> * <div ref={ref2} onScroll={handleScroll}/> */ export declare function useScrollSync(refs: Array<RefObject<any>>): (event: React.UIEvent) => void; //# sourceMappingURL=index.d.ts.map