mirror of
https://github.com/hex248/sprint.git
synced 2026-02-09 10:43:02 +00:00
improved loading screen with spinner
This commit is contained in:
16
packages/frontend/src/components/ui/spinner.tsx
Normal file
16
packages/frontend/src/components/ui/spinner.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Loader2Icon, Loader } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
||||
return (
|
||||
<Loader
|
||||
role="status"
|
||||
aria-label="Loading"
|
||||
className={cn("size-4 animate-spin", className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export { Spinner };
|
||||
Reference in New Issue
Block a user