@frsource/light-scrollbar
v1.4.224
Published
Minimalistic plugin to create custom scrollbars! 💪
Downloads
2,334
Maintainers
Readme
Installation
# npm
npm install @frsource/light-scrollbar
# Yarn
yarn add @frsource/light-scrollbar
# Pnpm
pnpm add @frsource/light-scrollbar
Modern JS/Typescript
import { attach } from "@frsource/light-scrollbar";
const scrollingElement = document.querySelector("element-with-overflow-auto");
attach(scrollingElement);
UMD
const scrollingElement = document.querySelector("element-with-overflow-auto");
window.lightScrollbar.attach(scrollingElement);
Documentation
For docs, please visit frsource.org/light-scrollbar
Demo examples
Check our examples to see how its working!
Questions
Don’t hesitate to ask a question directly on the discussions board!
Changelog
Changes for every release are documented in the release notes and CHANGELOG file.
Contribute
Development happens in docs, so run pnpm docs:dev
which runs microbundle and vitepress docs.
Tests can be done in cypress running pnpm cy
which runs microbundle and cypress
License
Copyright (c) 2022-present, Szymon Dziewoński, FRSOURCE