@dh-react-hooks/use-scrollto
TypeScript icon, indicating that this package has built-in type declarations

0.4.4 • Public • Published

@dh-react-hooks/use-scrollto

NPM version codecov

reast hooks for scrollTo

Installation

npm i @dh-react-hooks/use-scrollto

Arguments

props type required default description
x number true undefined pixel along the horizontal axis of the document
y number true undefined pixel along the vertical axis of the document

Way to Ride

  • Common jS
const useScrollto = require('@dh-react-hooks/use-scrollto')

  const scrollto = useScrollto.default(x, y)
  • ESM
import useScrollto from '@dh-react-hooks/use-scrollto'
  
  const scrollto = useScrollto(x, y)

Readme

Keywords

Package Sidebar

Install

npm i @dh-react-hooks/use-scrollto

Weekly Downloads

3

Version

0.4.4

License

ISC

Unpacked Size

15.3 kB

Total Files

13

Last publish

Collaborators

  • danhuang1202