mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-23 04:21:51 -07:00
adding functions for loading indicator
This commit is contained in:
parent
0708cfbc02
commit
48abcc33ff
11 changed files with 8059 additions and 829 deletions
13
client/app/components/LoadingIndicator.tsx
Normal file
13
client/app/components/LoadingIndicator.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export default function LoadingIndicator({ label = "Loading" }: { label?: string }) {
|
||||
return (
|
||||
<div
|
||||
role="status"
|
||||
aria-label={label}
|
||||
className="fixed inset-0 z-50 flex items-center justify-center bg-black/40"
|
||||
>
|
||||
// change the size of the indicater and color
|
||||
<div className="h-12 w-12 animate-spin rounded-full border-4 border-white border-t-transparent" />
|
||||
<span className="sr-only">{label}</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue