3.1.0 • Published 11 months ago

@wareme/use-scrollbar-width v3.1.0

Weekly downloads
-
License
NCSA
Repository
github
Last release
11 months ago

use-scrollbar-width

Detects the width of the browser's scrollbar. Returns 0 on the server.

import { useScrollbarWidth } from '@wareme/use-scrollbar-width'

const Header = component(() => {
  const scrollbarWidth = useScrollbarWidth()
  return <StyledHeader $scrollbarWidth={scrollbarWidth} />
})
3.1.0

11 months ago

3.0.1

1 year ago