Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "docs: Adding @internal to getInitials.",
"packageName": "@fluentui/react-avatar",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export type AvatarState = ComponentState<AvatarSlots> & Required<Pick<AvatarProp
color: NonNullable<Exclude<AvatarProps['color'], 'colorful'>>;
};

// @public
// Warning: (ae-internal-missing-underscore) The name "getInitials" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function getInitials(displayName: string | undefined | null, isRtl: boolean, options?: {
allowPhoneInitials?: boolean;
firstInitialOnly?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ function cleanupDisplayName(displayName: string): string {
*
* @returns The 1 or 2 character initials based on the name. Or an empty string if no initials
* could be derived from the name.
*
* @internal
*/
export function getInitials(
displayName: string | undefined | null,
Expand Down