[Feature]: export getHashCode for Avatar from avatar.ts for Fluentv8 PersonaInitialsColor / PersonaCoin support
Author: agetmanchuk2Created Sep 28, 2026Updated Sep 29, 2026
LabelsType: FeatureNeeds: Backlog reviewFluent UI react-components (v9)Component: AvatarFrom Shield
Area
React Components (@fluentui/react-components)
Describe the feature that you would like added
Please export getHashCode for Avatar from avatar.ts for FluentV8 PersonaInitialsColor / PersonaCoin support
This was available in FluentV8 to support things like diffs and version history, but it is unavailable in FluentV9 natively
Yes, one could re-create the hash function in code, however exporting it would be safer and more consistent. Would be a small change. Example:
getAvatarColor(name: string): AvatarNamedColor
Additional context
No response
Have you discussed this feature with our team
No response
Validations
- Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.
Priority
Medium
Source: microsoft/fluentui