Download next.js/examples/cms-umbraco-heartcore/components/avatar.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-umbraco-heartcore/components/avatar.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-umbraco-heartcore/components/avatar.js
-
curl -L -o avatar.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-umbraco-heartcore/components/avatar.js
399 Bytes
| import Image from "next/image"; | |
| export default function Avatar({ name, picture }) { | |
| return ( | |
| <div className="flex items-center"> | |
| <div className="w-12 h-12 relative mr-4"> | |
| <Image | |
| src={picture} | |
| layout="fill" | |
| className="rounded-full" | |
| alt={name} | |
| /> | |
| </div> | |
| <div className="text-xl font-bold">{name}</div> | |
| </div> | |
| ); | |
| } | |