13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
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>
|
|
);
|
|
}
|