Closed mattfelten closed 1 month ago
@mattfelten <SpinnerCircularFixed size={32} />
is working correctly. There is no any type error.
spinners-react@1.0.7
Type '{ size: number; thickness: number; speed: number; color: string; secondaryColor: "rgba(0, 0, 0, 0.44)"; className: string; "client:load": true; }' is not assignable to type 'IntrinsicAttributes & HTMLAttributes
& Partial<{ speed: number; still: boolean; thickness: number; }> & Partial<...>'. Property 'size' does not exist on type 'IntrinsicAttributes & HTMLAttributes & Partial<{ speed: number; still: boolean; thickness: number; }> & Partial<...>'.ts(2322)
I'll try to create a working demo.
I tried using the same component as you, and it worked properly for me. It might help to try reinstalling the library, as this could resolve the error.
Really odd. You're right. I can't replicate it on CodeSandbox. https://codesandbox.io/p/sandbox/test-react-spinners-zf2nph
I did reinstall all my dependencies but didn't change anything. I'll keep digging but seems like the library is fine. Must be on my end somewhere.
<SpinnerCircularFixed size={32} />
has a type error thatsize
doesn't exist. It does seem to work though.