0.6.4 • Published 6 months ago

@types/react-scrollable-anchor v0.6.4

Weekly downloads
5,378
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for react-scrollable-anchor 0.6
// Project: https://github.com/gabergg/react-scrollable-anchor
// Definitions by: Antoine DOUBOVETZKY <https://github.com/AntoineDoubovetzky>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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: Thu, 08 Jul 2021 22:41:31 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Antoine DOUBOVETZKY.

0.6.3

7 months ago

0.6.2

8 months ago

0.6.4

6 months ago

0.6.1

3 years ago

0.6.0

5 years ago