Skip to content

feat(react-tags): add base hooks for Tags components#35912

Merged
dmytrokirpa merged 5 commits into
microsoft:masterfrom
dmytrokirpa:feat/react-tags-base-hooks
Apr 1, 2026
Merged

feat(react-tags): add base hooks for Tags components#35912
dmytrokirpa merged 5 commits into
microsoft:masterfrom
dmytrokirpa:feat/react-tags-base-hooks

Conversation

@dmytrokirpa

Copy link
Copy Markdown
Contributor

Summary

  • Adds useTagBase_unstable / TagBaseProps / TagBaseState for Tag
  • Adds useTagGroupBase_unstable / TagGroupBaseProps / TagGroupBaseState for TagGroup
  • Adds useInteractionTagBase_unstable / InteractionTagBaseProps / InteractionTagBaseState for InteractionTag
  • Adds useInteractionTagPrimaryBase_unstable / InteractionTagPrimaryBaseProps / InteractionTagPrimaryBaseState for InteractionTagPrimary
  • Adds useInteractionTagSecondaryBase_unstable / InteractionTagSecondaryBaseProps / InteractionTagSecondaryBaseState for InteractionTagSecondary
  • All design props (appearance, size, shape, avatarShape, avatarSize) are omitted from base hooks
  • Behavioral/structural props (disabled, dismissible, selected, role, ARIA, keyboard handling) are retained
  • All existing hooks refactored to compose from their base counterpart
  • All new hooks and types exported from @fluentui/react-tags

Test plan

  • Build passes: yarn nx build react-tags
  • Lint passes: yarn nx lint react-tags
  • All 104 tests pass: yarn nx test react-tags

🤖 Generated with Claude Code

…nteractionTagPrimary, InteractionTagSecondary

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions

github-actions Bot commented Mar 26, 2026

Copy link
Copy Markdown

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.297 MB
324.275 kB
1.298 MB
324.374 kB
346 B
99 B
react-tag-picker
@fluentui/react-tag-picker - package
186.596 kB
55.849 kB
186.636 kB
55.858 kB
40 B
9 B
react-tags
InteractionTag
13.666 kB
5.459 kB
13.724 kB
5.47 kB
58 B
11 B
react-tags
Tag
29.521 kB
9.389 kB
29.648 kB
9.429 kB
127 B
40 B
react-tags
TagGroup
82.211 kB
24.143 kB
82.247 kB
24.152 kB
36 B
9 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
70.397 kB
19.96 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
236.743 kB
68.75 kB
react-components
react-components: FluentProvider & webLightTheme
43.612 kB
14.022 kB
react-portal-compat
PortalCompatProvider
8.386 kB
2.624 kB
react-timepicker-compat
TimePicker
108.174 kB
35.695 kB
🤖 This report was generated against 51317b2404ffd14b04619e696ee5ed44beee066d

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

Comment thread change/@fluentui-react-tags-base-hooks.json
@dmytrokirpa dmytrokirpa self-assigned this Mar 29, 2026
@dmytrokirpa dmytrokirpa marked this pull request as ready for review March 29, 2026 17:18
@dmytrokirpa dmytrokirpa requested review from a team and ValentinaKozlova as code owners March 29, 2026 17:18
@dmytrokirpa dmytrokirpa merged commit e068b98 into microsoft:master Apr 1, 2026
12 checks passed
tudorpopams pushed a commit to tudorpopams/fluentui that referenced this pull request Apr 14, 2026
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