feat(react-headless-components-preview): add Tag family#36230
Open
mainframev wants to merge 9 commits into
Open
feat(react-headless-components-preview): add Tag family#36230mainframev wants to merge 9 commits into
mainframev wants to merge 9 commits into
Conversation
This was referenced May 19, 2026
|
Pull request demo site: URL |
9a05d90 to
36292c8
Compare
f087756 to
fcf27c5
Compare
36292c8 to
f368d08
Compare
bac8400 to
961aca1
Compare
77859e1 to
495dfb9
Compare
1d660cc to
14b9a10
Compare
…nTag, InteractionTagPrimary, InteractionTagSecondary, TagGroup
…e from Tag-family hooks React Compiler config in the fluentui repo has been updated so the opt-out directive is no longer needed for hooks that mutate their returned state (e.g. setting data-* attributes on state.root). Removes the directive from useTag, useInteractionTag, useInteractionTagPrimary, useInteractionTagSecondary, and useTagGroup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…lity for data-attribute mutations
…o v9-style example pages
961aca1 to
7681b40
Compare
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.
Stack
This PR is part of a 3-PR stack. Review and merge bottom-up:
master) — merge firstSummary
Adds five headless Tag-family components to
@fluentui/react-headless-components-preview, delegating all behaviour to the canonical base hooks in@fluentui/react-tags:Tag(./tag)TagGroup(./tag-group)InteractionTag(./interaction-tag)InteractionTagPrimary(./interaction-tag-primary)InteractionTagSecondary(./interaction-tag-secondary)What the headless flavour strips:
InteractionTagSecondaryno longer injects a defaultDismissRegular; consumers passchildren.useTagGroupomits the newarrowNavigationProps/onAfterTagDismissoptions (introduced in feat(react-tags): decouple useTagGroupBase_unstable from Tabster + export contexts #36228), so the group renders withoutdata-tabsterand without post-dismiss focus restoration. Consumers wire those up themselves.data-disabled/data-dismissible/data-selected/data-has-secondary-actionattributes for downstream styling.Each component follows the standard surface (
Component,useComponent,renderComponent, types) with context-value helpers where the canonical renderer requires them. Stories live understories/src/Tag,stories/src/TagGroup,stories/src/InteractionTag, with a local CSS module per family demonstrating styling via thedata-*attributes.