-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkbox Component #62
base: main
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sid/react-ui/6fk3urz1k |
@siddharthkp or @rubenmoya Could you please review this and let me know if any required changes need to be done. `This also includes
Thus, if this works fine we can close PR: #54 .` Thanks |
Hello! Thank you for the contribution! What scares me the most about the Imagine we're asked to use this svg as the check mark:
How could we achieve that? Is that something that React UI wants to support? Should we use a customized checkbox by default so it's easier to override styles? Pinging @siddharthkp for input, since I don't know how we want to approach this |
Yes, we can customize that as per the design flow. But before that, as you said we need to list down the things to include in checkbox component. This will help us understand what way should we proceed. @siddharthkp it would be great if we have a list of things that needs to include in checkbox component for React UI. |
Heyo! Just wanted to say I have seen this PR but don't have any opinions yet. Will do my research and come back! |
@rubenmoya indeed has a great point, Most of the time when working with UIs, It's exhausting to remove the default Checkbox/Radio styles and use something of your own. @siddharthkp It'd would be to nice if we can add something like: <Checkbox render={<Whatever />} {...props} /> Render being just a reference here, It can be custom Checkbox svg or something like that which will be used instead of the default one. Idk tho, is that good? |
Based on: #12
Fix: Display checkbox component on components page
Added different checkbox component behaviours
Disabled Checkbox
Default Checked
Updated Documentation for Checkbox Component