# 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));
```
