Skip to content

radio-group: Add unstable ItemRoot and ItemTrigger #3519

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

chaance
Copy link
Member

@chaance chaance commented Apr 30, 2025

As a continuation of goals set by #3459, this PR breaks the Radio Group's Item component into separate parts:

  • ItemRoot
  • ItemTrigger

This will ultimately allow users to have more control over the behavior of radio items in a nested form context, and prevent rendering the bubble input altogether if needed.

I intentionally am not exposing the ItemBubbleInput at this time. I think the current behavior is a bit wonky and inconsistent with how a native checkbox group events work. We should flesh this out a bit better and update the API as needed before the next major release.

Copy link

changeset-bot bot commented Apr 30, 2025

🦋 Changeset detected

Latest commit: 69c0e29

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

This PR includes changesets to release 2 packages
Name Type
@radix-ui/react-radio-group Minor
radix-ui 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

@chaance chaance changed the title radio-group: Add unstable ItemRoot, ItemTrigger and `ItemBubbleIn… radio-group: Add unstable ItemRoot, ItemTrigger and ItemBubbleInput Apr 30, 2025
@chaance chaance requested a review from lucasmotta April 30, 2025 20:14
@chaance chaance force-pushed the chance/bubble-input-splits-radio branch 3 times, most recently from 823ff29 to 621eb54 Compare April 30, 2025 22:45
@chaance chaance changed the title radio-group: Add unstable ItemRoot, ItemTrigger and ItemBubbleInput radio-group: Add unstable ItemRoot and ItemTrigger Apr 30, 2025
@chaance chaance force-pushed the chance/bubble-input-splits-radio branch from f50b9fe to 69c0e29 Compare May 5, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant