diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-31 17:41:43 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:15:27 +0100 |
| commit | 2844a2bd71dcf1eb17a53992c10129b7496332e0 (patch) | |
| tree | 6b59044ade226c7dad7d1e64c9586e8d6ff0374b /src/utils/hooks/index.ts | |
| parent | 3ff4c37a7a2c40340c17f9e6c1754444bce0f839 (diff) | |
feat(components): add an Overlay component
* add useScrollbarWidth hook
* add useScrollLock hook
* add a new component to lock scroll with an overlay (it can be useful
especially on small screens to prevent background contents to be
scrolled)
Diffstat (limited to 'src/utils/hooks/index.ts')
| -rw-r--r-- | src/utils/hooks/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index b98be04..3e8b410 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -19,7 +19,9 @@ export * from './use-reading-time'; export * from './use-redirection'; export * from './use-reduced-motion'; export * from './use-route-change'; +export * from './use-scroll-lock'; export * from './use-scroll-position'; +export * from './use-scrollbar-width'; export * from './use-settings'; export * from './use-state-change'; export * from './use-system-color-scheme'; |
