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.
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));