Installation
npm install --save @types/react-scrollable-anchor
Summary
This package contains type definitions for react-scrollable-anchor (https://github.com/gabergg/react-scrollable-anchor).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-scrollable-anchor.
import * as React from "react";
export interface ScrollableAnchorProps {
id: string;
children?: React.ReactNode | undefined;
}
export interface ConfigureAnchorsOptions {
offset?: number | undefined;
scrollDuration?: number | undefined;
keepLastAnchorHash?: boolean | undefined;
}
export default class ScrollableAnchor extends React.Component<ScrollableAnchorProps> {}
export function goToTop(): void;
export function configureAnchors(options: ConfigureAnchorsOptions): void;
export function goToAnchor(anchorId: string, saveHashUpdate?: boolean): void;
export function removeHash(): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Antoine DOUBOVETZKY.