You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
409 B

interface LoadingSpinnerProps {
size?: number;
className?: string;
}
export function LoadingSpinner({
size = 16,
className = "",
}: LoadingSpinnerProps) {
return (
<span
role="status"
aria-label="加载中"
className={`inline-block animate-spin rounded-full border-2 border-current border-t-transparent ${className}`}
style={{ width: size, height: size }}
/>
);
}