: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 { forwardRef } from 'react'
import { IconEllipsis } from '@posthog/icons'
import { LemonButtonWithDropdown } from '.'
import { PopoverProps } from '../Popover/Popover'
import { LemonButtonDropdown, LemonButtonProps } from './LemonButton'
export type MoreProps = Partial<Pick<PopoverProps, 'overlay' | 'placement'>> &
LemonButtonProps & { dropdown?: Partial<LemonButtonDropdown> }
export const More = forwardRef<HTMLButtonElement, MoreProps>(
({ overlay, dropdown, 'data-attr': dataAttr, placement = 'bottom-end', ...buttonProps }, ref) => {
return (
<LemonButtonWithDropdown
aria-label="more"
data-attr={dataAttr ?? 'more-button'}
icon={<IconEllipsis />}
dropdown={
{
placement: placement,
actionable: true,
...dropdown,
overlay,
} as LemonButtonDropdown
}
size="small"
{...buttonProps}
disabled={!overlay}
ref={ref}
/>
)
}
)
More.displayName = 'More'