Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

simplebar

> 编程语言
Open source

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

6.4K stars0 likes1 views
WebsiteGitHub

About

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



SimpleBar does only one thing: replace the browser's default scrollbar with a custom CSS-styled one without losing performances. Unlike some popular plugins, SimpleBar doesn't mimic scroll with Javascript, causing janks and strange scrolling behaviours... You keep the awesomeness of native scrolling...with a custom scrollbar! SimpleBar **does NOT implement a custom scroll behaviour**. It keeps the **native** `overflow: auto` scroll and **only** replace the scrollbar visual appearance. - ** Follow me on [Twitter!](https://twitter.com/adriendenat) or [Mastodon!](https://mas.to/@adrien)** - **‍ If you like Simplebar, [buy me a coffee!](adriendenat)** #### Design it as you want SimpleBar uses pure CSS to style the scrollbar. You can easily customize it as you want! Or even have multiple style on the same page...or just keep the default style ("Mac OS" scrollbar style). #### Lightweight and performant Only 6kb minified. SimpleBar doesn't use Javascript to handle scrolling. You keep the performances/behaviours of the native scroll. #### Supported everywhere SimpleBar has been tested on the following browsers: Chrome, Firefox, Safari, Edge, IE11. ### Getting started The easiest way to use SimpleBar is with the default dependency-free version: `npm install simplebar`. - [Core documention](https://github.com/Grsmto/simplebar/tree/master/packages/simplebar) If you are using a framework, SimpleBar also supports the most popular ones: Vue, Angular and React. - [React documention](https://github.com/Grsmto/simplebar/tree/master/packages/simplebar-react) - [Angular documentation](https://github.com/Grsmto/simplebar/tree/master/packages/simplebar-angular) - [Vue documentation](https://github.com/Grsmto/simplebar/tree/master/packages/simplebar-vue) ### Demo You can check our [demo page](https://grsmto.github.io/simplebar/examples) (which is also the one we use for automated tests). ### Changelog See changelog here : https://github.com/Grsmto/simplebar/releases ### Credits - [KingSora](https://github.com/KingSora) for multiple features and inspirations (`height: auto` detection, RTL mode cross browser support and more) with [OverlayScrollbars](https://kingsora.github.io/OverlayScrollbars/). - [Jonathan Nicol](http://www.f6design.com/) for original idea with [Trackpad Scroll Emulator](https://github.com/jnicol/trackpad-scroll-emulator). - [Cassio Bittencourt](https://cassiobittencourt.com/) for the logo design.

Issues· 111 open

View all issuesOpen on GitHub
  • #701

    İmage Bug

    Updated Jul 24, 2026
  • #732

    Outdated lodash version in simplebar-core (security fix available)

    Updated Apr 2, 2026
  • #731

    "Legacy JavaScript"

    Updated Feb 27, 2026
  • #703

    Consider importing only from the required files from lodash

    Updated Feb 6, 2026
  • #730

    Import simplebar with error undefined getOptions

    Updated Dec 23, 2025
  • #729

    Horizontal scroll not detected correctly in RTL mode ([email protected])

    Updated Nov 10, 2025
  • #727

    if scrollbarMaxSize is set, the scrollbar does not reach the end

    Updated Aug 27, 2025
  • #726

    Please make it so that users of your framework don’t draw their own scrollbars.

    Updated Aug 25, 2025
  • #709

    Documentation for classNames is incorrect.

    Updated Jul 28, 2025
  • #725

    window.getComputedStyle second argument

    Updated Jun 15, 2025

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言