react-paginate icon indicating copy to clipboard operation
react-paginate copied to clipboard

pageCount only accepts number but I want to pass a string

Open HamaDler opened this issue 1 year ago • 0 comments

So my pageCount sometimes gets too big (in the thousands), and I want to add digit separators like so 1565 => 1,656.

but passing "1,656" as a string is not allowed and if I use normal js numbers with separators 1,555 it just assumes I am trying to pass in two props, 1 and 555.

Is there any workarounds for this?

I want to achieve something like the image below. I customized the container with css, but I can't do the number formatting with CSS, and with JS it just turns it to string which the inner element doesn't accept.

image

HamaDler avatar May 29 '23 08:05 HamaDler