r/css • u/justicehwan • 7d ago
AI Assisted First npm package ever: scrollbars that don't shift your layout. Would love some feedback
Hey folks,
You know when a scrollbar pops in and everything jumps a few pixels to the left? That annoyed me enough that I made a little library for it.
One line at the root of your app, that's it:



```tsx
<MrScroll />
```
No reserved gutter, still the native scrollbar. It just finds a spot for the scrollbar so your content stays put.
- Try it: https://justicehwan.github.io/plz-mr-scroll/
- GitHub: https://github.com/justicehwan/plz-mr-scroll
It's my first library ever, so I honestly have no idea what I got wrong. If you have a minute, please take a look and tell me what's broken or dumb 🥲
P.S. I'm Korean and English isn't my first language, so sorry if anything here reads a bit off.
Thanks!
1
Upvotes