Download novelforge-sentinel-pro-react/src/components/UI/LoadingSpinner.tsx from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/novelforge-sentinel-pro-react/src/components/UI/LoadingSpinner.tsx
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/novelforge-sentinel-pro-react/src/components/UI/LoadingSpinner.tsx
-
curl -L -o LoadingSpinner.tsx https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/novelforge-sentinel-pro-react/src/components/UI/LoadingSpinner.tsx
610 Bytes
| import React from 'react'; | |
| interface LoadingSpinnerProps { | |
| size?: 'sm' | 'md' | 'lg'; | |
| className?: string; | |
| } | |
| const LoadingSpinner: React.FC<LoadingSpinnerProps> = ({ size = 'md', className = '' }) => { | |
| const sizeClasses = { | |
| sm: 'w-4 h-4', | |
| md: 'w-8 h-8', | |
| lg: 'w-12 h-12' | |
| }; | |
| return ( | |
| <div className={`flex items-center justify-center ${className}`}> | |
| <div className={`${sizeClasses[size]} animate-spin`}> | |
| <div className="w-full h-full border-4 border-accent-cyan/30 border-t-accent-cyan rounded-full"></div> | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default LoadingSpinner; |