I've got this ( RadioGroupItem
must be used within RadioGroup
) error in my codebase when I create a separate component.
#3597
-
I'm building a multi-step form with ShadcnUI. I've used form components along with the checkbox, select and radio group components. Everything is working fine when I write all logic in a single component ( this is the component - https://github.dev/sumon-chandra/multi-step-form/blob/main/src/components/form/form2.tsx ). But, when I create components for each step of the form I've got an error on the RadioGroup component. It says This is the components for each step -- 👇👇 And this is the RadioGroup I don't understand why I'm getting this error since my
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you check that the |
Beta Was this translation helpful? Give feedback.
Can you check that the
RadioGroupItem
and theRadioGroupItem
that you are importing are not coming from radix instead of your local abstraction with shadcn ? Sometimes auto imports do that to me