Skip to content
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

Open
Yashesh133 opened this issue Aug 22, 2023 · 2 comments
Open

How to make it Responsive #157

Yashesh133 opened this issue Aug 22, 2023 · 2 comments

Comments

@Yashesh133
Copy link

No description provided.

@Yashesh133 Yashesh133 changed the title how to make it responsive How to make it responsive Aug 22, 2023
@Yashesh133 Yashesh133 changed the title How to make it responsive How to make it Responsive Aug 22, 2023
@Yashesh133
Copy link
Author

How to make it Responsive

@J-Zam
Copy link

J-Zam commented Sep 2, 2023

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.
Projects
None yet
Development

No branches or pull requests

3 participants