https://github.com/thavixt/thavixt-scrollbar
Replace the scrollbars of a container
https://github.com/thavixt/thavixt-scrollbar
react scroll scrollbar scrollbar-color scrollbar-style scrollbar-width scrollbars scrolling typescript
Last synced: 3 days ago
JSON representation
Replace the scrollbars of a container
- Host: GitHub
- URL: https://github.com/thavixt/thavixt-scrollbar
- Owner: thavixt
- Created: 2025-02-12T21:32:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T20:19:18.000Z (12 months ago)
- Last Synced: 2025-05-16T08:43:56.879Z (9 months ago)
- Topics: react, scroll, scrollbar, scrollbar-color, scrollbar-style, scrollbar-width, scrollbars, scrolling, typescript
- Language: TypeScript
- Homepage: https://thavixt-scrollbar.komlosidev.net/
- Size: 1.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# thavixt-scrollbar
Customize scrollbars on your websites
- in a specific element
- or every scrollbar on the page
# Demo
[demo page](https://thavixt-scrollbar.vercel.app/)
## Packages
[thavixt-scrollbar-core](packages/core/README.md) (use without a framework)



[thavixt-scrollbar-react](packages/react/README.md) (use with React)



# Todo
- [ ] separate vertical and horizontal scrollbar styles
- [ ] animation/transition/shadow/pseudo element on reaching a scroll threshold (top/bottom/left/right)
- [ ] more test coverage
- [ ] lots of code cleanup/refactoring
## Notes
- Monorepo structure based on [wixplosives/sample-monorepo](https://github.com/wixplosives/sample-monorepo)
- using [npm workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces#defining-workspaces) and [Lerna](https://lerna.js.org/docs/features)
- useful articles/docs:
- [CSS scrollbars styling](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_scrollbars_styling)
- [Scrollbar styling - chrome for developers](https://developer.chrome.com/docs/css-ui/scrollbar-styling)
- [stackoverflow comment on npm package renaming](https://stackoverflow.com/a/56197360/9964256)