@breadhead/with-scroll-lock
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

with-scroll-lock

Instalation

yarn add @breadhead/with-scroll-lock

Usage

import * as React from "react";
import withScrollLock from "@breadhead/with-scroll-lock";


const Test = ({ bodyScrolling: { lock, unlock }}) => 
<div>
  <button onClick={lock}>lock scroll</button>
  <button onClick={unlock}>unlock scroll</button>
</div>  

export default withScrollLock(true)(Test)

Readme

Keywords

Package Sidebar

Install

npm i @breadhead/with-scroll-lock

Weekly Downloads

3

Version

1.2.4

License

MIT

Unpacked Size

174 kB

Total Files

8

Last publish

Collaborators

  • igor.kamyshev
  • iwanttobealight
  • uncleseneca