1.2.4 • Published 5 years ago

@breadhead/with-scroll-lock v1.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago