@advdominion/get-scrollbar-width
This commit is contained in:
1 parent
5359166f88
commit
4f059e3298
4 files changed
+61
No files matched your search
@@ -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));
|
||||
```
|
||||
Reference in new issue
Block a user