Spaces:
Running
Running
Download frontend/src/components/LoadingSpinner.js from xenecode/Jaguar_Project: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/spaces/xenecode/Jaguar_Project/resolve/main/frontend/src/components/LoadingSpinner.js
- Command line
-
hf download hf://spaces/xenecode/Jaguar_Project/frontend/src/components/LoadingSpinner.js
-
curl -L -o LoadingSpinner.js https://huggingface.co/spaces/xenecode/Jaguar_Project/resolve/main/frontend/src/components/LoadingSpinner.js
690 Bytes
| import React from 'react'; | |
| const LoadingSpinner = ({ size = 'medium', text = 'Loading' }) => { | |
| const spinnerSizes = { | |
| small: 'h-6 w-6 border-2', | |
| medium: 'h-10 w-10 border-4', | |
| large: 'h-16 w-16 border-4' | |
| }; | |
| return ( | |
| <div className="flex min-h-[calc(100dvh-3rem)] flex-col items-center justify-center gap-4 bg-hmi-bg font-hmi"> | |
| <div | |
| className={`animate-spin border-hmi-line border-t-hmi-accent ${spinnerSizes[size]}`} | |
| aria-hidden="true" | |
| /> | |
| {text && ( | |
| <div className="text-sm font-semibold uppercase tracking-[0.14em] text-hmi-muted"> | |
| {text} | |
| </div> | |
| )} | |
| </div> | |
| ); | |
| }; | |
| export default LoadingSpinner; | |