This repository has been archived on 2024-04-27. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Valentin Silytuin f86a91d8d1 v1.1.0 2024-02-27 12:14:03 +04:00
.editorconfig v1.0.0 2023-06-19 16:01:37 +04:00
.gitignore v1.0.0 2023-06-19 16:01:37 +04:00
.npmignore v1.0.0 2023-06-19 16:01:37 +04:00
.prettierrc v1.0.0 2023-06-19 16:01:37 +04:00
README.md v1.1.0 2024-02-27 12:14:03 +04:00
index.js v1.1.0 2024-02-27 12:14:03 +04:00
package.json v1.1.0 2024-02-27 12:14:03 +04:00

README.md

get-scrollbar-width

Get window scrollbar width (if present):

import getScrollbarWidth from '@advdominion/get-scrollbar-width';

console.log(getScrollbarWidth());

Get system scrollbar width:

import getScrollbarWidth from '@advdominion/get-scrollbar-width';

console.log(getScrollbarWidth(false));