Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/overlayscrollbars

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/overlayscrollbars

TypeScript definitions for overlayscrollbars

  • 1.12.5
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
272K
decreased by-14.02%
Maintainers
1
Weekly downloads
 
Created

What is @types/overlayscrollbars?

@types/overlayscrollbars provides TypeScript definitions for the OverlayScrollbars library, which is used to create customizable and performant scrollbars for web applications.

What are @types/overlayscrollbars's main functionalities?

Initialization

This feature allows you to initialize OverlayScrollbars on a specific DOM element. The second parameter is an options object where you can customize the scrollbar.

const osInstance = OverlayScrollbars(document.getElementById('myElement'), {});

Options Configuration

This feature allows you to configure various options such as theme and resize behavior when initializing OverlayScrollbars.

const osInstance = OverlayScrollbars(document.getElementById('myElement'), { className: 'os-theme-dark', resize: 'both' });

Methods

This feature allows you to use various methods provided by the OverlayScrollbars instance, such as scrolling to a specific position.

osInstance.scroll({ x: '100%', y: '100%' });

Events

This feature allows you to attach event listeners to the OverlayScrollbars instance, such as listening for scroll events.

osInstance.on('scroll', (event) => { console.log('Scrolled!', event); });

Other packages similar to @types/overlayscrollbars

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc