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
RadioGroup.Item
and RadioCards.Item
accept checked
prop
#451
Comments
CheckboxCards
and CheckboxGroup
don't accept checked prop
CheckboxCards
and CheckboxGroup
don't accept checked
prop
Yes, the |
Gotcha, in my case we are using them as a sort of stepper. So if step1 is completed, the But I can't do the following: step1Completed can be // Type 'string | undefined' is not assignable to type 'string'.
<CheckboxCards.Root value={[step1Completed && "step1", step2Completed && "step2"]}> So I am doing the following to keep typescript happy but it seems like a hacky solution: <CheckboxCards.Root value={[step1Completed ? "step1": "_", step2Completed ? "step2": "_"]}> Edit: I'm prob not going to continue using this method, but just thought I would raise it here. |
CheckboxCards
and CheckboxGroup
don't accept checked
propRadioGroup.Item
and RadioCards.Item
accept checked
prop
I noticed that
CheckboxCards.Item
andCheckboxGroup.Item
don't accept checked as a prop. Is this by design?RadioGroup
andRadioCards
seem to accept this, along withCheckbox
.The text was updated successfully, but these errors were encountered: