-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][AvatarGroup] Add renderSurplus
prop
#39283
[material-ui][AvatarGroup] Add renderSurplus
prop
#39283
Conversation
Netlify deploy previewBundle size reportDetails of bundle changes (Toolpad) |
renderSurplus
prop
The code looks good to me! let's add a demo next to https://mui.com/material-ui/react-avatar/#total-avatars ### Custom surplus
Set `renderSurplus` prop as a callback to customize the surplus avatar. The callback will receive one argument which is the number of surpluses based on the children and `max` prop.
This is useful when you need to render the surplus based on the data sent from the server.
// demo |
@siriwatknp done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good! thanks for your contribution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @uuxxx! thanks for working on this
I left two writing improvements and a question, let me know what you think 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for working on it!
Signed-off-by: Diego Andai <[email protected]>
…Avatar element
According to @siriwatknp comment, add renderSurplus prop.
possible solution to #39204