shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
68.65k stars 4.07k forks source link

[feat]: Add Avatar Group #3344

Closed darshansrc closed 1 month ago

darshansrc commented 5 months ago

Feature description

Feature Request: Add Avatar Group Component

Description: I would like to request the addition of an Avatar Group component to the Shadcn UI component library. The Avatar Group component would allow for the display of multiple avatars in a single group, which is useful for representing groups of users or contacts.

Functionality:

Use Case: This component would be particularly useful in social networking apps, messaging apps, and collaboration platforms where displaying groups of users is common.

Implementation Ideas:

Example from antd is attached below:

Screenshot 2024-04-03 at 6 10 52 PM

Affected component/components

avatar

Additional Context

Additional details here...

Before submitting

abdullahnauman2 commented 5 months ago

Hi. I would love to take on this issue and work on implementing the Avatar Group component. I'm making this open source contribution as part of a university course, and part of the requirement is to have test coverage. Does the shadcn-ui library use some sort of golden test coverage with image diffs for regression testing on UI components?

gojnimer6553 commented 5 months ago

I have a working draft implementation of that, tomorrow i’ll post here

darshansrc commented 5 months ago

Would love to see it! Needed it from shadcn only as i don't want to install one more UI Library

gojnimer6553 commented 5 months ago

Here's my initial implementation. Pretty raw code, but maybe it will help you guys creating your own components

avatar-stack.zip

darshansrc commented 5 months ago

Looks good!

JuanDa237 commented 5 months ago

503

shadcn commented 3 months ago

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

Lihemen commented 1 month ago

Oh no, this has gone stale.😱😱

This would be a great feature to have in ShadCN; just like the MUI avatar groups and many other component libraries

shadcn commented 1 month ago

Let’s reopen it.

pxlgrdnr commented 1 month ago

Would love to see this feature

shadcn commented 1 month ago

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

JuanDa237 commented 2 weeks ago

Let’s reopen it.

closed again :(

scriptcoded commented 1 week ago

Maybe a no-close label would be reasonable here? 😊