Add: Spinner component
This commit is contained in:
parent
27f10cdb64
commit
d9b4619cdc
1 changed files with 13 additions and 0 deletions
13
frontend/src/components/Spinner.tsx
Normal file
13
frontend/src/components/Spinner.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
const Spinner = ({ size = 'md' }) => {
|
||||
const sizes = {
|
||||
sm: 'h-8 w-8 border-t-2 border-t-pink-600 border-b-2 border-b-sky-400',
|
||||
md: 'h-16 w-16 border-t-4 border-t-pink-600 border-b-4 border-b-sky-400',
|
||||
lg: 'h-24 w-24 border-t-4 border-t-pink-600 border-b-4 border-b-sky-400',
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={`animate-spin rounded-full ${sizes[size]}`}></div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Spinner;
|
Loading…
Add table
Reference in a new issue