Skip to content

Commit a6d2692

Browse files
committed
Add loader component
1 parent 51c2949 commit a6d2692

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/components/Loader/Loader.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default function Loader() {
2+
return (
3+
<div
4+
className="flex place-items-center justify-center min-h-screen"
5+
role="status"
6+
aria-live="polite"
7+
>
8+
<div className="relative">
9+
<div className="w-16 h-16 border-4 border-gray-200 border-t-blue-600 rounded-full animate-spin"></div>
10+
<span className="sr-only">Loading content ...</span>
11+
</div>
12+
</div>
13+
);
14+
}

src/components/Loader/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Loader';

0 commit comments

Comments
 (0)