FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
3.06k stars 593 forks source link

Property getControlsContainerStyles does not exist on type intrinsic values #1004

Closed realpinman closed 1 year ago

realpinman commented 1 year ago

Bugs and Questions

Prerequisites

Describe Your Environment

Describe the Problem

getControlsContainerStyles prop does not exist on type intrinsic values in my react app.

I'm trying to access the styles of the controls containers so i can reposition them on my page but the function in the docs does not appear to by accessible.

Expected behavior:

Access to the containers css attributes should be editable as per the documentation. `<Carousel getControlsContainerStyles={(key) => { switch (key) { case 'TopLeft': return { backgroundColor: "red", }; default: // will apply all other keys return { backgroundColor: "blue", }; } }} />

{/ Carousel Content /} `

Actual behavior

nukacarousel

Additional Information

To reproduce try to use the getControlsContainerStyles prop.