Skip to content

feat(react-headless-components-preview): expose AvatarGroup context - #36659

Merged
Victor Genaev (mainframev) merged 2 commits into
microsoft:masterfrom
mainframev:feat/headless-avatar-group-context
Sep 1, 2026
Merged

feat(react-headless-components-preview): expose AvatarGroup context#36659
Victor Genaev (mainframev) merged 2 commits into
microsoft:masterfrom
mainframev:feat/headless-avatar-group-context

Conversation

@mainframev

@mainframev Victor Genaev (mainframev) commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Previous Behavior

The headless AvatarGroup entry point exports its context-value builder, but not
the context reader. Headless consumers that need group state must either depend
directly on @fluentui/react-avatar or introduce a duplicate context.

New Behavior

Export useAvatarGroupContext from the headless AvatarGroup entry point as a
stable alias for `useAvatarGroupContext_unstable

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-headless-components-preview
react-headless-components-preview: entire library
239.001 kB
67.292 kB
239.122 kB
67.338 kB
121 B
46 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-headless-components-preview
@fluentui/react-headless-components-preview/tag-picker
53.998 kB
17.753 kB
react-headless-components-preview
@fluentui/react-headless-components-preview/teaching-popover
36.058 kB
12 kB
🤖 This report was generated against 26484860c01052d6c4482a1875f0c75b5c6670ce

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

@dmytrokirpa

Copy link
Copy Markdown
Contributor

Victor Genaev (@mainframev) should we also expose the useAvatarContext?

@mainframev
Victor Genaev (mainframev) merged commit 09bb9d0 into microsoft:master Sep 1, 2026
13 checks passed
Ray Knight (ArrayKnight) added a commit to ArrayKnight/fluentui that referenced this pull request Sep 2, 2026
…exports on upstream's location after merge

Upstream microsoft#36659 exposes useAvatarGroupContext from useAvatarGroup; the branch's
avatarGroupContext re-export now carries only AvatarGroupProvider, and the
subpath barrel drops the duplicate the auto-merge produced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Aj9uA3rCVgosnh2zNn8qkc
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