Archived
This repository has been archived on 2024-04-27 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
f86a91d8d12926fc006984e6c523756e8a117df8
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));
Languages
JavaScript
100%