@advdominion/get-scrollbar-width

This commit is contained in:
Valentin Silytuin committed 2024-04-27 23:51:01 +04:00
1 parent 5359166f88
commit 4f059e3298
4 files changed
+61

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# get-scrollbar-width
Get window scrollbar width (if present):
```js
import { getScrollbarWidth } from '@advdominion/get-scrollbar-width';
console.log(getScrollbarWidth());
```
Get system scrollbar width:
```js
import { getScrollbarWidth } from '@advdominion/get-scrollbar-width';
console.log(getScrollbarWidth(false));
```