Skip to content

UCheckbox array support #3050

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

Closed
tyrunasj opened this issue Jan 8, 2025 · 3 comments · Fixed by #3862
Closed

UCheckbox array support #3050

tyrunasj opened this issue Jan 8, 2025 · 3 comments · Fixed by #3862
Labels
enhancement New feature or request v3 #1289

Comments

@tyrunasj
Copy link

tyrunasj commented Jan 8, 2025

Description

Can you add array support for the checkbox ?

Additional context

No response

@tyrunasj tyrunasj added enhancement New feature or request triage v3 #1289 labels Jan 8, 2025
@emilsgulbis
Copy link

import { CheckboxGroupRoot } from 'reka-ui'

<CheckboxGroupRoot v-model="array">
  <UCheckbox :value="1" :model-value="array" label="1" />
  <UCheckbox :value="2" :model-value="array" label="2" />
</CheckboxGroupRoot>

try like this

@lumavida
Copy link

Hi,

model-value only allows boolean or "indeterminate".
The problem is that Checkbox and Radio are rendered as Button.
When you set a ref, its passed to the button.

Only when used in forms it renders the native input field.

There is a discussion on Radix UI

@benjamincanac benjamincanac marked this as a duplicate of #3438 Mar 3, 2025
@benjamincanac benjamincanac marked this as a duplicate of #1740 Mar 31, 2025
@benjamincanac benjamincanac marked this as a duplicate of #3750 Mar 31, 2025
@benjamincanac benjamincanac removed the triage label Mar 31, 2025 — with Volta.net
@Softrain-world
Copy link

Guys.. when will it support array?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants