tomcru / holy-loader

Holy Loader is a lightweight, customizable top loading progress bar component for React / Next.js 13 & Next.js 14. #toploader #top-loader #nextjs-toploader #nprogress #nextjs-progressbar
https://www.npmjs.com/package/holy-loader
MIT License
67 stars 4 forks source link

Support for RTL layouts #21

Open nahasco opened 5 months ago

nahasco commented 5 months ago

It would be nice if this project supports RTL layouts.

Basically the progress should run from the right to the left instead of left to right.

It can be automatic by looking up the dir value in html, and maybe also a choice to select the direction manually.

Thank you for the great project. Hope this suggestion makes it!

r0ld3x commented 4 months ago

let me have a look!

tomcru commented 4 months ago

you are very welcome to @r0ld3x! I haven't found the time yet 🙏

r0ld3x commented 4 months ago

@tomcru any idea how to do it?

I tried but itsnot working that way. I accepted the parameters but I need the https://github.com/tomcru/holy-loader/blob/main/src/HolyProgress.ts#L60 here i used direction and transform but din't worked. :)