: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 type { Meta, StoryObj } from '@storybook/react'
import { DEFAULT_MODEL, OBSERVATION_CREDITS_BY_MODEL } from 'products/replay_vision/frontend/replay_scanners/types'
import { formatCredits } from 'products/replay_vision/frontend/utils/credits'
import { ReplayVisionScannerCard } from './ReplayVisionScannerCard'
const meta: Meta<typeof ReplayVisionScannerCard> = {
title: 'Experiments/ReplayVisionScannerCard',
component: ReplayVisionScannerCard,
args: {
onChange: () => {},
sessionPrice: formatCredits(OBSERVATION_CREDITS_BY_MODEL[DEFAULT_MODEL]),
},
}
export default meta
type Story = StoryObj<typeof ReplayVisionScannerCard>
export const Off: Story = {
args: { checked: false },
}
export const On: Story = {
args: { checked: true },
}