question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Variants for AvatarGroup

See original GitHub issue

Mui’s Avatar component has the variants squared, rounded, circle to transform the shape of the avatar. In an AvatarGroup when more than the max number of avatars are present an avatar displaying the remaining number of Avatars (+x) is appended. AvatarGroup has no property to change the shape of this appended Avatar. If I want this appended avatar to match the avatars in the group I have to do it manually through style overrides or css classes.

Screen Shot 2020-09-29 at 12 07 27 PM
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

I think AvatarGroup’s properties should be updated to give more control over how the +x Avatar appears

Examples 🌈

Screen Shot 2020-09-29 at 12 44 33 PM

Motivation 🔦

It’s not hard to work around using custom css but I think its an oversight. If we support alternative variants for Avatars will we shouldn’t assume only the rounded variant will be used in AvatarGroup.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mnajdovacommented, Oct 1, 2020

@hjades sure feel free to 😃

1reaction
hjadescommented, Oct 1, 2020

hi! can i take this issue? thanks~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variants for AvatarGroup #22810 - mui/material-ui - GitHub
Mui's Avatar component has the variants squared, rounded, circle to transform the shape of the avatar. In an AvatarGroup when more than the ......
Read more >
AvatarGroup API - Material UI - MUI
API reference docs for the React AvatarGroup component. ... import AvatarGroup from '@mui/material/AvatarGroup'; ... string, 'circular'. The variant to use.
Read more >
Avatar - Chakra UI
The Avatar component is used to represent user, and displays the profile picture, initials or fallback icon.
Read more >
React MUI AvatarGroup API - GeeksforGeeks
variant : It is used to choose different variants of avatars. CSS Rules: root (MuiAvatarGroup-root): It is the style applied to the root...
Read more >
React material-ui AvatarGroup rounded shape for extra child
... (); return ( <AvatarGroup max={4} className={classes.root}> <Avatar alt="Remy Sharp" variant="rounded" src="/static/images/avatar/1.jpg" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found