mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-03 03:10:50 +08:00
17 lines
329 B
TypeScript
17 lines
329 B
TypeScript
export function LoadingSpinner({
|
|
size = 20,
|
|
className = ''
|
|
}: {
|
|
size?: number;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<div
|
|
className={`loading-spinner${className ? ` ${className}` : ''}`}
|
|
style={{ width: size, height: size, borderWidth: size / 7 }}
|
|
role="status"
|
|
aria-live="polite"
|
|
/>
|
|
);
|
|
}
|