Created
March 28, 2022 13:09
-
-
Save roelvan/8c6b793f55834241d3095871f8f956af to your computer and use it in GitHub Desktop.
Panic nova syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Image from '@components/Image'; | |
const Avatars = ({ users = [] }) => ( | |
<div className="flex -space-x-2 overflow-hidden"> | |
{users.map((user) => ( | |
<div className="flex flex-col items-center" key={user.name}> | |
<div className="relative inline-block h-20 w-20 rounded-full ring-4 ring-white overflow-hidden bg-gray-100"> | |
<Image | |
width={160} | |
height={160} | |
imageId={user.imageId} | |
alt={`Profielfoto van ${user.name}`} | |
/> | |
</div> | |
<div className="text-xs text-gray-500 mt-0.5">{user.name}</div> | |
</div> | |
))} | |
</div> | |
); | |
export default Avatars; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment