-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AvatarGroup] Add max avatar prop (#19853)
- Loading branch information
Showing
6 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import React from 'react'; | ||
import Avatar from '@material-ui/core/Avatar'; | ||
import AvatarGroup from '@material-ui/lab/AvatarGroup'; | ||
import Tooltip from '@material-ui/core/Tooltip'; | ||
|
||
export default function GroupAvatars() { | ||
return ( | ||
<AvatarGroup> | ||
<AvatarGroup max={3}> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" /> | ||
<Avatar alt="Travis Howard" src="/static/images/avatar/2.jpg" /> | ||
<Avatar alt="Cindy Baker" src="/static/images/avatar/3.jpg" /> | ||
<Tooltip title="Foo • Bar • Baz"> | ||
<Avatar>+3</Avatar> | ||
</Tooltip> | ||
<Avatar alt="Cindy Baker" src="/static/images/avatar/3.jpg" /> | ||
</AvatarGroup> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import React from 'react'; | ||
import Avatar from '@material-ui/core/Avatar'; | ||
import AvatarGroup from '@material-ui/lab/AvatarGroup'; | ||
import Tooltip from '@material-ui/core/Tooltip'; | ||
|
||
export default function GroupAvatars() { | ||
return ( | ||
<AvatarGroup> | ||
<AvatarGroup max={3}> | ||
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" /> | ||
<Avatar alt="Travis Howard" src="/static/images/avatar/2.jpg" /> | ||
<Avatar alt="Cindy Baker" src="/static/images/avatar/3.jpg" /> | ||
<Tooltip title="Foo • Bar • Baz"> | ||
<Avatar>+3</Avatar> | ||
</Tooltip> | ||
<Avatar alt="Cindy Baker" src="/static/images/avatar/3.jpg" /> | ||
</AvatarGroup> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters