Created
August 5, 2024 09:00
-
-
Save timrodz/fe88b33eed3e1b803297626eb72de2fe to your computer and use it in GitHub Desktop.
Loading Spinner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Courtesy of https://github.com/shadcn-ui/ui/discussions/1694#discussioncomment-7477119 | |
export const LoadingSpinner = ({ className = '' }: { className?: string }) => { | |
return ( | |
<svg | |
xmlns='http://www.w3.org/2000/svg' | |
width='24' | |
height='24' | |
viewBox='0 0 24 24' | |
fill='none' | |
stroke='currentColor' | |
strokeWidth='2' | |
strokeLinecap='round' | |
strokeLinejoin='round' | |
className={`animate-spin ${className}`} | |
> | |
<path d='M21 12a9 9 0 1 1-6.219-8.56' /> | |
</svg> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment