: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 { IconInfo } from '@posthog/icons'
import { FieldLegend, FieldSet, Tooltip, TooltipContent, TooltipTrigger } from '@posthog/quill'
import type { ChartOptionGroupProps } from './ChartOptionGroup'
export function QuillChartOptionGroup({ title, info, children }: ChartOptionGroupProps): JSX.Element {
return (
<FieldSet className="gap-2">
<FieldLegend variant="label" className="flex items-center gap-1">
{title}
{info && (
<Tooltip>
<TooltipTrigger render={<span className="inline-flex text-muted-foreground" />}>
<IconInfo />
</TooltipTrigger>
<TooltipContent className="max-w-64">{info}</TooltipContent>
</Tooltip>
)}
</FieldLegend>
{children}
</FieldSet>
)
}