Customize active dot background color #534
Answered
by
elrumordelaluz
jose-donato
asked this question in
Q&A
-
Hello. Amazing library! Is it possible to customize active dot background color? |
Beta Was this translation helpful? Give feedback.
Answered by
elrumordelaluz
Feb 13, 2023
Replies: 1 comment 1 reply
-
Sure it is! Take a look into the "custom styles" example and use the styles={{
// ...
dot: (base, { current }) => ({
...base,
background: current ? "#DAF7A6" : "#148F77"
})
}} Here is a working example. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jose-donato
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure it is! Take a look into the "custom styles" example and use the
dot
key into styles prop: something like this:Here is a working example.