OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
import { Spinner } from '@/components/ui/spinner';
const FullPageLoadingState = ({ title = 'Loading…' }: { title?: string }) => {
return (
<div
aria-busy
className="flex min-h-[calc(100dvh-4rem)] flex-col items-center justify-center gap-3 p-8 text-center lg:min-h-dvh"
>
<Spinner aria-hidden size="md" />
<p className="text-muted-foreground text-sm" role="status">
{title}
</p>
</div>
);
};
export default FullPageLoadingState;