Skip to content

Commit a973b2f

Browse files
kLabzoliviertassinari
authored andcommitted
[Avatar] Add missing 'fallback' AvatarClassKey (#18717)
1 parent 94a0fe7 commit a973b2f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/material-ui/src/Avatar/Avatar.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ export interface AvatarTypeMap<P = {}, D extends React.ElementType = 'div'> {
1616

1717
declare const Avatar: OverridableComponent<AvatarTypeMap>;
1818

19-
export type AvatarClassKey = 'root' | 'colorDefault' | 'circle' | 'rounded' | 'square' | 'img';
19+
export type AvatarClassKey =
20+
| 'root'
21+
| 'colorDefault'
22+
| 'circle'
23+
| 'rounded'
24+
| 'square'
25+
| 'img'
26+
| 'fallback';
2027

2128
export type AvatarProps<
2229
D extends React.ElementType = AvatarTypeMap['defaultComponent'],

0 commit comments

Comments
 (0)