components#AvatarGroup JavaScript Examples

The following examples show how to use components#AvatarGroup. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: avatar-group-description.jsx    From monday-ui-react-core with MIT License 6 votes vote down vote up
AvatarGroupDescription = () => {
  const component = useMemo(
    () => (
      <AvatarGroup size={Avatar.sizes.LARGE} max={3}>
        <Avatar type={Avatar.types.IMG} src={person1} ariaLabel="Hadas Fahri" />
        <Avatar type={Avatar.types.IMG} src={person2} ariaLabel="Sergey Roytman" />
        <Avatar type={Avatar.types.IMG} src={person3} ariaLabel="Yonatan Lev Ari" />
        <Avatar type={Avatar.types.IMG} src={person1} ariaLabel="Hadas Fahri" />
        <Avatar type={Avatar.types.IMG} src={person2} ariaLabel="Sergey Roytman" />
        <Avatar type={Avatar.types.IMG} src={person3} ariaLabel="Yonatan Lev Ari" />
      </AvatarGroup>
    ),
    []
  );
  return (
    <RelatedComponent
      component={component}
      title="Avatar Group"
      description="An avatar group displays a number of avatars grouped together in a stack or grid."
    />
  );
}