@lani.ground/react-hooks
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@lani.ground/react-hooks", | ||
"description": "react hooks", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"keywords": [ | ||
@@ -73,3 +73,3 @@ "react-hooks", | ||
}, | ||
"gitHead": "3a671178c3da40cd4555ad3781758481b767e559" | ||
"gitHead": "5db3c98d56349e2bd25d4a87158db0ef8494a459" | ||
} |
@@ -10,2 +10,4 @@ # react-hooks | ||
```tsx | ||
import { useVisibleElement } from '@lani.ground/react-hooks'; | ||
export default function Component() { | ||
@@ -20,12 +22,12 @@ const { ref, activeKey, activeElement } = useVisibleElement({ | ||
<div ref={ref}> | ||
<section> | ||
<section style={{height: '100vh'}}> | ||
<p>section 1</p> | ||
</section> | ||
<section> | ||
<section style={{height: '100vh'}}> | ||
<p>section 2</p> | ||
</section> | ||
<section> | ||
<section style={{height: '100vh'}}> | ||
<p>section 3</p> | ||
</section> | ||
<section> | ||
<section style={{height: '100vh'}}> | ||
<p>section 4</p> | ||
@@ -44,2 +46,4 @@ </section> | ||
```tsx | ||
import { useScrollLock } from '@lani.ground/react-hooks'; | ||
export default function Component() { | ||
@@ -46,0 +50,0 @@ comst {lockScroll, unlockScroll} = useScrollLock(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12557
61