@types/react-scrollable-anchor
TypeScript icon, indicating that this package has built-in type declarations

0.6.4 • Public • Published

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

Credits

These definitions were written by Antoine DOUBOVETZKY.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-scrollable-anchor

Weekly Downloads

9,721

Version

0.6.4

License

MIT

Unpacked Size

4.01 kB

Total Files

5

Last publish

Collaborators

  • types