Files
myeasycms-v2/apps/dev-tool/app/components/components/loading-fallback.tsx
Giancarlo Buomprisco ad427365c9 Storybook (#328)
* feat(docs): add interactive examples and API references for Button, Card, and LoadingFallback components
- Updated dependencies
- Set `retries` to a fixed value of 3 for consistent test retries across environments.
- Increased `timeout` from 60 seconds to 120 seconds to allow more time for tests to complete.
- Reduced `expect` timeout from 10 seconds to 5 seconds for quicker feedback on assertions.
2025-08-22 07:35:44 +08:00

21 lines
500 B
TypeScript

import { Loader2 } from 'lucide-react';
interface LoadingFallbackProps {
message?: string;
className?: string;
}
export function LoadingFallback({
message = 'Loading component...',
className = 'flex items-center justify-center py-12',
}: LoadingFallbackProps) {
return (
<div className={className}>
<div className="text-muted-foreground flex items-center gap-2">
<Loader2 className="h-4 w-4 animate-spin" />
<span>{message}</span>
</div>
</div>
);
}