Skip to content

Customize active dot background color #534

Answered by elrumordelaluz
jose-donato asked this question in Q&A
Discussion options

You must be logged in to vote

Sure it is! Take a look into the "custom styles" example and use the dot key into styles prop: something like this:

styles={{
 //  ...
 dot: (base, { current }) => ({
   ...base,
   background: current ? "#DAF7A6" : "#148F77"
 })
}}

Here is a working example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jose-donato
Comment options

Answer selected by jose-donato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants