feat(checkbox-group): add RuiCheckboxGroup component#524
Merged
kelsos merged 1 commit intorotki:mainfrom Apr 28, 2026
Merged
Conversation
Adds a multi-select grouping primitive that mirrors RuiRadioGroup's API: shared label, hint, error/success messages, hideDetails, disabled, color, size, required, and inline layout. The group's v-model is an array of selected values. RuiCheckbox gains an optional generic `value` prop and joins a group via provide/inject when a `RuiCheckboxGroup` is an ancestor; outside a group it remains a plain boolean checkbox (backward compatible). Closes rotki#50.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #524 +/- ##
==========================================
+ Coverage 84.73% 84.78% +0.05%
==========================================
Files 143 145 +2
Lines 5227 5259 +32
Branches 1556 1570 +14
==========================================
+ Hits 4429 4459 +30
- Misses 798 800 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RuiCheckboxGroup— a multi-select grouping primitive with v-model array of selected values, mirroringRuiRadioGroup's public API (label,hint,errorMessages,successMessages,hideDetails,disabled,color,size,required,inline).RuiCheckboxgains an optional genericvalueprop and joins a group viaprovide/injectwhen nested underRuiCheckboxGroup. Outside a group it stays a plain boolean checkbox (backward compatible).Closes #50.
Design notes
RuiRadioGroup) keepsRuiCheckbox's publicmodelValuetyped asboolean, so existing internal consumers (RuiDataTable,RuiTableHead) are unaffected.MaybeRefOrGetter<T>+toValue()for group-leveldisabled/color/sizepropagation.RuiFormTextDetailso the group's own hint/error renders cleanly.Test plan
pnpm typecheck(lib + example) — cleanpnpm lint— clean (0 errors)pnpm --filter @rotki/ui-library test:run— 1080/1080 unit tests passpnpm --filter example test:e2e:dev forms/checkbox.spec.ts— 5/5 passpnpm --filter @rotki/ui-library build:prod— builds cleanly, web-types regeneratedComponents/Forms/Checkbox/CheckboxGroup)