Download next.js/examples/blog-starter/src/app/_components/avatar.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/blog-starter/src/app/_components/avatar.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/blog-starter/src/app/_components/avatar.tsx
-
curl -L -o avatar.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/blog-starter/src/app/_components/avatar.tsx
328 Bytes
| type Props = { | |
| name: string; | |
| picture: string; | |
| }; | |
| const Avatar = ({ name, picture }: Props) => { | |
| return ( | |
| <div className="flex items-center"> | |
| <img src={picture} className="w-12 h-12 rounded-full mr-4" alt={name} /> | |
| <div className="text-xl font-bold">{name}</div> | |
| </div> | |
| ); | |
| }; | |
| export default Avatar; | |