Skip to content

Can we have this customizations in chakra react select #37

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

You must be logged in to vote

So I know I said I'd make an example for how to do this before, but I kind of spaced on it for a while. I did end up making an example of how you could implement this since then though. In fact I made 2 versions, one using the styles from the Chakra UI Radio and one using the Checkbox.

Radio

You example image looks very close to the chakra-ui Radio so I'll start with that. In order to implement it I, I made a custom Option component and pulled the styles for the Radio from the Chakra theme. Here's the code/example image:

CodeSandbox: https://codesandbox.io/s/chakra-react-select-radio-q1vvgg?file=/example.js

import { useMultiStyleConfig, chakra } from "@chakra-ui/react";
import { Select, c…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@howdyAnkit
Comment options

@csandman
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by howdyAnkit
Comment options

You must be logged in to vote
1 reply
@csandman
Comment options

Comment options

You must be logged in to vote
1 reply
@csandman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants