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.

662 B
Raw Blame
import { Link } from 'lib/lemon-ui/Link'

import { SDK } from '~/types'

interface SDKSnippetProps {
    sdk: SDK
    sdkInstructions: () => JSX.Element
}

export const SDKSnippet = ({ sdk, sdkInstructions }: SDKSnippetProps): JSX.Element => {
    return (
        <div>
            <div className="mb-8">
                <h3 className="text-xl font-bold mb-2">Integrate PostHog with {sdk.name}</h3>
                <Link className="" to={sdk.docsLink} target="_blank" targetBlankIcon>
                    Read the docs
                </Link>
            </div>
            <div className="deprecated-space-y-4">{sdkInstructions()}</div>
        </div>
    )
}