1.2.4 • Published 6 years ago

@breadhead/with-scroll-lock v1.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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)
1.2.4

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago