MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / LoadingSpinner

Function LoadingSpinner

src/components/LoadingSpinner.tsx:6–26  ·  view source on GitHub ↗
({ size = 'md', color = 'coral' }: LoadingSpinnerProps)

Source from the content-addressed store, hash-verified

4}
5
6export function LoadingSpinner({ size = 'md', color = 'coral' }: LoadingSpinnerProps) {
7 const sizeClasses = {
8 sm: 'w-4 h-4',
9 md: 'w-6 h-6',
10 lg: 'w-8 h-8',
11 };
12
13 const colorClasses = {
14 coral: 'border-[#d4d0c6] border-t-[#DE7356]',
15 dark: 'border-[#d4d0c6] border-t-[#1a1a1a]',
16 gray: 'border-[#d4d0c6] border-t-[#6a6a6a]',
17 };
18
19 return (
20 <div className="flex items-center justify-center">
21 <div
22 className={`${sizeClasses[size]} border-2 ${colorClasses[color]} rounded-full animate-spin`}
23 />
24 </div>
25 );
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected