UNPKG

@react-motion-router/core

Version:

Declarative routing library for ReactJS ⚛ with animations baked in ⏮

26 lines (25 loc) 817 B
import { Component } from "react"; interface ScrollRestorationProps extends React.HTMLAttributes<HTMLDivElement> { id: string; children: JSX.Element; hashScrollConfig?: ScrollIntoViewOptions; shouldRestore?: boolean; } export default class ScrollRestoration extends Component<ScrollRestorationProps> { private ref; private scrollPos; private routerData; private _mounted; constructor(props: ScrollRestorationProps); componentDidMount(): void; componentWillUnmount(): void; onPageAnimationEnd: () => void; onHashChange: () => void; setRef: (ref: HTMLElement | null) => void; get scrollTop(): number; get scrollLeft(): number; get scrollWidth(): number; get scrollHeight(): number; render(): JSX.Element; } export {};