Skip to content

How to customize component colors #104

Answered by csandman
ovirta asked this question in Q&A
Discussion options

You must be logged in to vote

I finally implemented a way to pass custom styles to each of your components! I added a prop called chakraStyles which behaves similarly to react-select's built in styles prop, with some slight differences. Check the updated documentation for full details and let me know if you still have any questions!


As a side note, in order to implement this, I had to replace all of the components built into react-select with custom chakra components so I am also exporting those from the package. They can be imported alongside the primary components like so:

import { Select, chakraComponents } from 'chakra-react-select'

You can check the original react-select documentation on this feature as I have n…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by csandman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Feature Request A new feature requested for the package
5 participants
Converted from issue

This discussion was converted from issue #2 on May 05, 2022 19:28.