helpers/packages/get-scrollbar-width
Valentin Silytuin ee74819f9e Publish
- @advdominion/get-scrollbar-width@2.0.0
2024-04-27 23:51:27 +04:00
..
README.md @advdominion/get-scrollbar-width 2024-04-27 23:51:01 +04:00
index.js @advdominion/get-scrollbar-width 2024-04-27 23:51:01 +04:00
package.json Publish 2024-04-27 23:51:27 +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));