Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

660 B
Raw Blame
import { Spinner } from '@posthog/lemon-ui'

export function AIDataLoading({ variant = 'inline' }: { variant?: 'inline' | 'block' }): JSX.Element {
    if (variant === 'inline') {
        return (
            <div className="inline-flex items-center gap-1 text-muted-alt">
                <Spinner className="text-sm" />
                <span className="text-xs">Loading...</span>
            </div>
        )
    }

    return (
        <div className="flex flex-col items-center justify-center p-8 text-muted-alt">
            <Spinner className="text-2xl mb-2" captureTime />
            <p className="text-sm">Loading AI data...</p>
        </div>
    )
}