first wokring prototype
This commit is contained in:
12
src/components/LoadingIndicator.tsx
Normal file
12
src/components/LoadingIndicator.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
type LoadingIndicatorProps = {
|
||||
label?: string;
|
||||
size?: "sm" | "md";
|
||||
};
|
||||
|
||||
export default function LoadingIndicator({ label = "Loading", size = "sm" }: LoadingIndicatorProps) {
|
||||
return (
|
||||
<span className={`loading-indicator loading-indicator-${size}`} role="status" aria-label={label} title={label}>
|
||||
<span className="loading-envelope" aria-hidden="true" />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user