: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { CommandBlock } from 'lib/components/CommandBlock/CommandBlock'
import { useWizardCommand } from '../shared/useWizardCommand'
import { WizardHog } from '../shared/wizardHog'
export function WelcomeWizardCallout(): JSX.Element | null {
const { wizardCommand, isCloudOrDev } = useWizardCommand()
// The wizard only targets cloud and dev instances.
if (!isCloudOrDev) {
return null
}
return (
<div
className="flex flex-wrap items-center gap-x-4 gap-y-2 rounded border border-primary bg-surface-primary px-3 py-2"
data-attr="onboarding-welcome-wizard"
>
<WizardHog className="size-10 shrink-0" />
<div className="min-w-60 flex-1">
<div className="font-semibold">Install PostHog with Wizard</div>
<div className="text-xs text-secondary">
Run this in your app's folder to set up every product below. The setup agent adds the SDK and your
project token.
</div>
</div>
<CommandBlock
command={wizardCommand}
copyLabel="Wizard command"
ariaLabel="Copy wizard command"
decoration="rainbow"
/>
</div>
)
}