Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

spinner.tsx

15 lines340 Bytes

1import { Loader2Icon } from "lucide-react";
2import { cn } from "~/lib/utils";
3​
4function Spinner({ className, ...props }: React.ComponentProps<typeof Loader2Icon>) {
5 return (
6 <Loader2Icon
7 aria-label="Loading"
8 className={cn("animate-spin", className)}
9 role="status"
10 {...props}
11 />
12 );
14​
15export { Spinner };