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

@camdh/ion-custom-scrollbar

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

@camdh/ion-custom-scrollbar

## Installation

  • 1.4.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ion-custom-scrollbar

Installation

# on project root
npm i @camdh/ion-custom-scrollbar
  • npm page: https://www.npmjs.com/package/@camdh/ion-custom-scrollbar

Usage

Import the module on top of your lazy loaded module and add it to the imports array on NgModule.

import { IonCustomScrollbarModule } from 'ion-custom-scrollbar'

@NgModule({
  imports: [
    ...,
    IonCustomScrollbarModule
  ],
  declarations: [...]
})

Configuration

You can pass a configuration object on ion-content using the scrollbar attribute.

keytypedescriptiondefault value
widthnumbertrack width in pixels8
tracknumbertrack opacity0.1
trackHovernumbertrack opacity on hover0.1
thumbnumberthumb opacity0.25
thumbHovernumberthumb opacity on hover0.33
allbooleanapply style on mobile alsofalse

Example

<ion-content [scrollbar]="{width:12,trackHover:0}">
   ...
</ion-content>

Publish

# you just need to run the script
./publish

FAQs

Package last updated on 24 Jan 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