You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In that case you must include the css in your bundle.css manually, like in the docs:
Server Side Rendering
While the library works with SSR, the spinner's animation CSS will be attached to the head only on the hydrate phase, which means the spinners will start animating only after the page is fully loaded. To work around this, include the needed css in your bundle.css manually:
/* App.css */
/* to load animation for a specific spinner */
@import "~spinners-react/lib/SpinnerCircular.css";
/* to load animations for all spinners at once */
@import "~spinners-react/lib/index.css";
It looks like the layout styles or passed properties update issue.
Could you possibly provide some simple demo showing the issue?
Here's the create-react-app example that can be uses as a starting point: spinners-cra-tailwind
Currently it doesn't seem to show signs of flickering.
Activity
DrZanuff commentedon Dec 4, 2024
@Kisama are you using SSR (e.g. Next.JS)?
In that case you must include the css in your bundle.css manually, like in the docs:
https://github.com/adexin/spinners-react/blob/master/README.md?plain=1#L57
Kisama commentedon Mar 14, 2025
No, I am using react app with tailwindcss like
adexin-team commentedon Apr 27, 2025
It looks like the layout styles or passed properties update issue.
Could you possibly provide some simple demo showing the issue?
Here's the create-react-app example that can be uses as a starting point: spinners-cra-tailwind
Currently it doesn't seem to show signs of flickering.