Avatar Group API RFC #3153
Replies: 2 comments
-
Hi @nkrantz, Thanks for piloting the RFC process! 👏 Giving this some more thought, maybe we should use context to mimic our other components after all. We can pass Example: <AvatarGroup size="sizeIcon90">
<Avatar name="Nora Krantz"/>
<Avatar name="Loreina Chew"/>
<Avatar name="Shadi Isber"/>
</AvatarGroup> Added benefit, since we don't want odd sized avatars in a group, we can make the context take precedence. So that, in the following example, sizeIzon50 is ignored: <AvatarGroup size="sizeIcon90">
<Avatar name="Nora Krantz"/>
<Avatar size="sizeIcon50" name="Loreina Chew"/>
<Avatar name="Shadi Isber"/>
</AvatarGroup> It's a small improvement over spreading it everywhere and should be easy to do. |
Beta Was this translation helpful? Give feedback.
-
The component has been released and the window for comment has been closed. |
Beta Was this translation helpful? Give feedback.
-
Hello from Paste
Thanks for taking the time to provide some feedback to Paste! We appreciate your contribution.
Please take a look at the following API proposal for the new Avatar Group component. Also sometimes known as Face Pile or Stacked Connections, Avatar Group displays multiple Avatars together to represent people or entities within the same group. Avatar Group will be exported from the same package as the existing Avatar component.
Proposed API:
Note: The proposed API has a required prop,
size
, which should match the token value passed to the Avatar components. The spacing of the Avatar Group is determined based on this value. All Avatars in an Avatar Group should be the same size.Check out the API Exploration CodeSandbox.
Please share any feedback or suggestions you might have! Thanks.
Beta Was this translation helpful? Give feedback.
All reactions