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

I can't make the size work #18

Open
ghost opened this issue Jun 15, 2020 · 4 comments
Open

I can't make the size work #18

ghost opened this issue Jun 15, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 15, 2020

Hi,
thank you for this component
I can't make the size smaller. I'm using it like this

import { Spinner } from 'react-awesome-spinners'
<Spinner color="#be97e8" size={64} sizeUnit='px' />

whether I do 32 or 16 it's always the same(64) size. Tried "32px" and "32" as well. Is there anything wrong on how I'm using it?

@noedsondutra
Copy link

Hey, I couldn't make my spinner work with size too.

But, I've found the solution, this package:
https://github.com/JoshK2/react-spinners-css

Look at the table an notice that some spinners can't be sized

I hope have helped!

@ruthcmoratagil
Copy link

ruthcmoratagil commented Aug 20, 2020

Hi,

I have the same issue as @canercak:

import { Spinner } from 'react-awesome-spinners';
<Spinner color='#2B71E4' size={12} />

Color works. Size does not. Could you please let us know if that is the right way to do it?

@noedsondutra
Copy link

Hi achtur,

Some spinners can't be sized.
Look at the link I sent in the message above yours.

On the link, there is a table with a column "size: number", "-" means the spinner can't be sized.

Hope have helped.

@ruthcmoratagil
Copy link

Thanks @noedsondutra! It did help.
I guess I will need to look for a different package if I want to use a sizable spinner...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants