Download frontend/src/components/ui/LoadingState.jsx from shak3008/DocWeave: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/shak3008/DocWeave/resolve/main/frontend/src/components/ui/LoadingState.jsx
- Command line
-
hf download hf://spaces/shak3008/DocWeave/frontend/src/components/ui/LoadingState.jsx
-
curl -L -o LoadingState.jsx https://huggingface.co/spaces/shak3008/DocWeave/resolve/main/frontend/src/components/ui/LoadingState.jsx
621 Bytes
| import { Spinner } from "./Spinner"; | |
| import "./LoadingState.css"; | |
| /** Inline loading block for a section of a page. */ | |
| export function LoadingState({ label = "Loading…" }) { | |
| return ( | |
| <div className="dw-loading"> | |
| <Spinner size={18} /> | |
| <span>{label}</span> | |
| </div> | |
| ); | |
| } | |
| /** Full-viewport loader — app boot, auth check, route-level suspense. */ | |
| export function FullPageLoader({ label = "Loading DocWeave…" }) { | |
| return ( | |
| <div className="dw-loading dw-loading--full"> | |
| <Spinner size={20} /> | |
| <span>{label}</span> | |
| </div> | |
| ); | |
| } | |