npm.io
0.6.4 • Published 2 years ago

@types/react-scrollable-anchor

Licence
MIT
Version
0.6.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.

index.d.ts

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 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Antoine DOUBOVETZKY.