Download src/components/Avatar.tsx from VTechAI/ChatUI: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/VTechAI/ChatUI/resolve/main/src/components/Avatar.tsx
- Command line
-
hf download hf://spaces/VTechAI/ChatUI/src/components/Avatar.tsx
-
curl -L -o Avatar.tsx https://huggingface.co/spaces/VTechAI/ChatUI/resolve/main/src/components/Avatar.tsx
273 Bytes
| import { ReactNode } from 'react'; | |
| export default function Avatar({ | |
| avatar, | |
| size, | |
| className, | |
| }: { | |
| avatar: string | ReactNode; | |
| size?: 'SMALL' | 'MEDIUM' | 'LARGE'; | |
| className: string; | |
| }) { | |
| return <div className={`${className} flex-shrink-0`}>{avatar}</div>; | |
| } | |