@advdominion/get-scrollbar-width
This commit is contained in:
17
packages/get-scrollbar-width/README.md
Normal file
17
packages/get-scrollbar-width/README.md
Normal 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));
|
||||
```
|
||||
Reference in New Issue
Block a user