-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathLoader.jsx
More file actions
35 lines (33 loc) · 835 Bytes
/
Copy pathLoader.jsx
File metadata and controls
35 lines (33 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from "react";
function Loader() {
return (
<div className="flex items-center justify-center h-screen">
<svg
className="animate-spin h-10 w-10 text-black"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
>
<circle
cx="50"
cy="50"
fill="none"
stroke="currentColor"
strokeWidth="10"
r="35"
strokeDasharray="164.93361431346415 56.97787143782138"
>
<animateTransform
attributeName="transform"
type="rotate"
repeatCount="indefinite"
dur="1s"
values="0 50 50;360 50 50"
keyTimes="0;1"
/>
</circle>
</svg>
</div>
);
}
export default Loader;