@mvsde/scrollbar-width

1.0.0 • Public • Published

Scrollbar width

Installation

yarn add @mvsde/scrollbar-width
# or
npm install @mvsde/scrollbar-width

Usage

import scrollbarWidth from '@mvsde/scrollbar-width'

// Get the width of the scrollbar
const width = scrollbarWidth()

// Check if page has overflow and then get scrollbar width
const widthWithOverflowTest = scrollbarWidth({ testOverflow: true })

Readme

Keywords

Package Sidebar

Install

npm i @mvsde/scrollbar-width

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

157 kB

Total Files

13

Last publish

Collaborators

  • mvsde