Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Angular
  3. ngx-scrollbar

ngx-scrollbar

MITTypeScriptv19.1.5

Custom overlay scrollbars with native scrolling mechanism and smooth scrolling for Angular applications.

Visit WebsiteGitHubGitHub
654 stars101 forks0 contributors

What is ngx-scrollbar?

ngx-scrollbar is an Angular library that provides customizable overlay scrollbars with native scrolling performance. It solves the problem of inconsistent and unstylable browser scrollbars by offering a fully customizable scrollbar component that maintains the browser's native scrolling mechanism for optimal performance.

Target Audience

Angular developers building applications that require customized scrollbar styling, smooth scrolling functionality, or integration with complex UI components like data tables, virtual scroll lists, and dropdowns.

Value Proposition

Developers choose ngx-scrollbar because it delivers exceptional performance through native scrolling, offers extensive customization via CSS variables, and provides seamless integration with Angular Material, CDK Virtual Scroll, and popular third-party UI libraries.

Overview

Custom overlay-scrollbars with native scrolling mechanism

Use Cases

Best For

  • Replacing default browser scrollbars with custom-styled overlay scrollbars in Angular applications
  • Implementing smooth scrolling functionality across different browsers in Angular projects
  • Integrating custom scrollbars with Angular Material components like MatSelect and dialogs
  • Adding scrollbar customization to virtual scrolling implementations using Angular CDK
  • Styling scrollbars in data-heavy applications using tables from ag-Grid, PrimeNG, or ngx-datatable
  • Building Angular applications that require RTL support or mobile-optimized scrolling experiences

Not Ideal For

  • Non-Angular projects using frameworks like React or Vue
  • Applications where native CSS scrollbar properties (e.g., ::-webkit-scrollbar) fully meet styling needs
  • Projects with strict bundle size constraints that cannot afford additional JavaScript dependencies

Pros & Cons

Pros

Native Scrolling Performance

Leverages the browser's native scroll engine for smooth, efficient scrolling, with performance tests validating its exceptional speed and responsiveness.

CSS Customization Flexibility

Uses CSS variables for easy scrollbar styling, enabling consistent theming across Angular applications without complex JavaScript overrides.

Deep Angular Ecosystem Integration

Seamlessly integrates with Angular Material (e.g., MatSelect), CDK Virtual Scroll, and third-party libraries like PrimeNG and ag-Grid, as documented with extensive examples.

Cross-Browser Smooth Scroll

Provides a directive that polyfills smooth scrolling functionality across all modern browsers, addressing compatibility gaps where native CSS support is lacking.

Cons

Angular-Only Dependency

Exclusively tied to the Angular framework, making it useless for projects built with React, Vue, or other frontend technologies.

Bundle Size Impact

Adds to the overall JavaScript bundle, which could slow initial load times for performance-sensitive applications, despite its native scrolling optimizations.

Fragmented Documentation

Documentation is split across multiple markdown files (e.g., Usage.md, Styling.md), which can make it harder to find specific information quickly compared to a unified guide.

Frequently Asked Questions

Quick Stats

Stars654
Forks101
Contributors0
Open Issues5
Last commit2 months ago
CreatedSince 2017

Tags

#smooth#angular-material#ux#frontend#virtual-scroll#ui-components#angular-cdk#angular#scroll#scrollbar#smooth-scrolling#smooth-scroll

Built With

A
Angular

Links & Resources

Website

Included in

Angular10.0k
Auto-fetched 3 hours ago

Related Projects

simplebarsimplebar

Custom scrollbars vanilla javascript library with native scroll, done simple, lightweight, easy to use and cross-browser.

Stars6,408
Forks530
Last commit7 months ago
OverlayScrollbarsOverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.

Stars5,168
Forks248
Last commit1 month ago
ngx-page-scrollngx-page-scroll

Animated scrolling functionality for angular written in pure typescript

Stars471
Forks112
Last commit1 month ago
ngx-ui-scrollngx-ui-scroll

Virtual/infinite scroll for Angular

Stars234
Forks18
Last commit4 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub