: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 { Button } from '@posthog/quill'
import { LinkPrimitive } from 'lib/lemon-ui/Link'
export interface TodayMenuLinkItemOptions {
external?: boolean
/** Loads the page fresh, for routes outside the app router such as Django admin. */
disableClientSideRouting?: boolean
}
export function todayMenuLinkItem(to: string, options: TodayMenuLinkItemOptions = {}): JSX.Element {
return (
<Button
size="row"
left
render={
<LinkPrimitive
to={to}
target={options.external ? '_blank' : undefined}
disableClientSideRouting={options.disableClientSideRouting}
/>
}
/>
)
}