feat(react-headless-components-preview): add ToolbarRadioButton#36100
Merged
dmytrokirpa merged 2 commits intomicrosoft:masterfrom May 6, 2026
Merged
Conversation
…nent Wraps useToolbarRadioButtonBase_unstable from @fluentui/react-toolbar with data-attribute stamping (data-disabled, data-disabled-focusable, data-icon-only, data-checked) following the same headless pattern as ToolbarToggleButton. Includes Storybook story showing mutually exclusive alignment selection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📊 Bundle size report
🤖 This report was generated against 30a42808ed35608a185fab611fd0465ec05b7748 |
|
Pull request demo site: URL |
khmakoto
approved these changes
May 5, 2026
mainframev
approved these changes
May 6, 2026
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
ToolbarRadioButtontoreact-headless-components-previewas a headless wrapper arounduseToolbarRadioButtonBase_unstablefrom@fluentui/react-toolbardata-disabled,data-disabled-focusable,data-icon-only, anddata-checkeddata attributes on the root element viastringifyDataAttribute, matching the same pattern asToolbarToggleButtonrenderToggleButton_unstablefrom@fluentui/react-button(same asToolbarToggleButton)ToolbarRadioButton,renderToolbarRadioButton,useToolbarRadioButton, and their types from both the component barrel and the package public API (toolbar.ts)RadioButtonstory showing three mutually exclusive text-alignment buttons inside aToolbarRadioGroupTest plan
yarn nx run react-headless-components-preview:type-checkpassesToolbarRadioButtonstory renders in Storybook with correct initial selection (left)data-checkedtoggles)data-disabledanddata-disabled-focusableattributesdata-icon-onlyattribute🤖 Generated with Claude Code