radio-group: Add unstable `ItemRoot` and `ItemTrigger`
As a continuation of goals set by https://github.com/radix-ui/primitives/pull/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.
🦋 Changeset detected
Latest commit: 69c0e297525be247615ab6ce9e2882399eaa7cde
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