You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently implemented a RadioGroup component in a project using the RadioGroup from Radix. It worked like a charm! 🥳❤️
Now we are implementing a Radio component as well, which we would like to import in our codebase and use in a way like this example:
returntype==='checkbox' ? Checkbox : Radio;
I have done some research here in the repository, both on Discussions and Issues and I have also tried to do something by my own in my code, trying to import the Radio, to use it from the radio-group package, etc. and I haven't found a way to do so. So I'm wondering if there's a way to make this work. I'm thinking about creating some abstraction using the RadioGroup (to have its context) and exporting somehow just the RadioItem. Do you ever did something like that? Any tips?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey Radix Community,
I've recently implemented a RadioGroup component in a project using the RadioGroup from Radix. It worked like a charm! 🥳❤️
Now we are implementing a Radio component as well, which we would like to import in our codebase and use in a way like this example:
I have done some research here in the repository, both on Discussions and Issues and I have also tried to do something by my own in my code, trying to import the Radio, to use it from the radio-group package, etc. and I haven't found a way to do so. So I'm wondering if there's a way to make this work. I'm thinking about creating some abstraction using the RadioGroup (to have its context) and exporting somehow just the RadioItem. Do you ever did something like that? Any tips?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions