react-marquee-slider icon indicating copy to clipboard operation
react-marquee-slider copied to clipboard

Missing MarqueeProps

Open januarsmad opened this issue 5 years ago • 5 comments

Hi, thank you for creating this amazing module.

I tried to use it, but the problem is children props is missing:

Type '{ children: Element[]; velocity: number; }' is missing the following properties from type 'MarqueeProps': direction, scatterRandomly, resetAfterTries, onInit, onFinishts(2739)

and this is the example code i copied:

<Marquee velocity={10}>
     {times(5, Number).map((id) => (
          <div className='box'>
                {id}
          </div>
    ))}
</Marquee>

also when i'm passing minScale it also returns this errors:

Property 'minScale' does not exist on type 'IntrinsicAttributes & MarqueeProps & { children?: ReactNode; }'.

januarsmad avatar Aug 18 '20 01:08 januarsmad

Hi, can you create a repo with your code for me to reproduce?

mxmzb avatar Aug 20 '20 23:08 mxmzb

any updates on this ?

jonrrivera avatar Aug 01 '21 01:08 jonrrivera

I'm also having this issue in next js using typescript, any fix?

adamjw3 avatar Jan 25 '22 07:01 adamjw3

Same

matine avatar Jul 04 '22 17:07 matine

+1 🫠

piersolenski avatar Jul 06 '23 17:07 piersolenski