New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make it Responsive #157
Labels
Comments
How to make it Responsive |
Hi @Yashesh133, to make your loading spinner responsive, you can adjust its dimensions based on the screen size using conditional rendering. Here's an example of how you can achieve this using the ThreeDots component: // Define height and width based on screen size
const loaderHeight = window.innerWidth >= 992 ? "42" : "45";
const loaderWidth = window.innerWidth >= 992 ? "80" : "60";
return (
<ThreeDots
height={loaderHeight}
width={loaderWidth}
radius="9"
color="rgba(0, 0, 0, .4)"
ariaLabel="three-dots-loading"
wrapperStyle={{}}
visible={true}
/>
); I hope it helps you! |
Repository owner
locked and limited conversation to collaborators
Dec 27, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: