Created
March 17, 2024 11:50
-
-
Save onesamket/934b48d9b4e727584631ad2df3239a72 to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
const Spinner = () => { | |
return ( | |
<div | |
className="inline-block h-4 w-4 mr-2 dark:bg-white bg-slate-950 animate-spin rounded-full border-2 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]" | |
role="status" | |
> | |
</div> | |
); | |
}; | |
export default Spinner; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment