Skip to content

fix: allow passing props shared by all checkboxes / radios to use...Group hook#4864

Open
unekinn wants to merge 5 commits into
mainfrom
fix/useCheckboxAndRadioGroup-variant
Open

fix: allow passing props shared by all checkboxes / radios to use...Group hook#4864
unekinn wants to merge 5 commits into
mainfrom
fix/useCheckboxAndRadioGroup-variant

Conversation

@unekinn
Copy link
Copy Markdown
Contributor

@unekinn unekinn commented May 7, 2026

Summary

useCheckboxGroup and useRadioGroup: these hooks now accept all CheckboxProps / RadioProps that don't conflict with the hooks' own props. This can be used to easily set common props like variant for all the checkboxes or radios in the group.

Checks

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 7, 2026

🦋 Changeset detected

Latest commit: 8450f94

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@digdir/designsystemet-react Patch
@digdir/designsystemet Patch
@digdir/designsystemet-css Patch
@digdir/designsystemet-types Patch
@digdir/designsystemet-web Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@unekinn unekinn marked this pull request as draft May 7, 2026 14:22
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 7, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 144c0654-a5a4-4ea5-b9b4-9c9c46120f95

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/useCheckboxAndRadioGroup-variant

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Preview deployments for this pull request:

storybook - 8. May 2026 - 12:59

www - 8. May 2026 - 13:02

@unekinn unekinn changed the title fix(useCheckboxGroup): allow passing props shared by all checkboxes to useCheckboxGroup fix: allow passing props shared by all checkboxes / radios to use...Group hook May 7, 2026
@unekinn unekinn force-pushed the fix/useCheckboxAndRadioGroup-variant branch 2 times, most recently from b2c0757 to 3a378d2 Compare May 8, 2026 10:11
@unekinn unekinn force-pushed the fix/useCheckboxAndRadioGroup-variant branch from 3a378d2 to dea8d73 Compare May 8, 2026 10:11
@unekinn unekinn force-pushed the fix/useCheckboxAndRadioGroup-variant branch from 8475238 to 8450f94 Compare May 8, 2026 10:57
@unekinn unekinn marked this pull request as ready for review May 8, 2026 10:57
@mimarz
Copy link
Copy Markdown
Collaborator

mimarz commented May 11, 2026

Waiting for reviewing this after we finish web-first docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants