finds.dev

KingSora/OverlayScrollbars

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

View on GitHubHomepage ↗

★ 5,231TypeScriptMITupdated Oct 2026

// the take

OverlayScrollbars swaps out native browser scrollbars for a custom, styleable overlay while keeping native scroll behavior and accessibility intact. It's aimed at frontend devs who want to skin scrollbars without picking a library that reimplements scrolling from scratch, and it ships typed wrappers for React, Vue, Angular, Svelte, and Solid, not just vanilla JS.

It preserves native scroll semantics (momentum, keyboard, wheel, touch) instead of faking scroll with transforms, which is where most custom-scrollbar libraries fall apart on accessibility and feel. Styling is done through CSS custom properties on real DOM elements, so you're not fighting specificity or forking a stylesheet to change a handle color. The plugin split (ScrollbarsHidingPlugin, SizeObserverPlugin, ClickScrollPlugin) means treeshaking actually drops code you don't use, and update detection is driven by MutationObserver/ResizeObserver rather than a polling loop. It also runs server-side (Node/Deno/Bun) for SSR/SSG without special-casing.

Click-to-scroll on the track is off by default and needs the separate ClickScrollPlugin wired in — an easy thing to miss when migrating off native scrollbars where that behavior is free. The update/debounce system (mutation, resize, event, env, each independently tunable) is powerful but it's real surface area; anything with heavy dynamic content will likely need manual tuning to avoid either jank or wasted recalculation. It's effectively a single-maintainer project (KingSora) with no visible organizational backing, so there's continuity risk if you're building critical UI chrome on top of it long-term. Minimum browser support (Safari 10+, Chrome 55+) is generous but dated — there's no mention of how it behaves with newer platform features like `scrollbar-gutter` or forced-colors/high-contrast modes, which is where overlay-scrollbar approaches tend to get brittle.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
5,231
Forks
250
Language
TypeScript
License
MIT
Last commit
20 Oct 2026

// nearby

If OverlayScrollbars isn't quite it.

All repos →