Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

663 B
Raw Blame
import type { ReactNode } from 'react';

import styles from './TooltipScrollArea.module.scss';

interface TooltipScrollAreaProps {
	children: ReactNode;
}

/**
 * Scroll container for hover reveals that list an unbounded number of items (tag
 * chips, variable values): caps the tooltip's height and scrolls past it. Plain CSS
 * overflow with a pinned-visible thin scrollbar — a tooltip is transient, so an
 * auto-hiding scrollbar would leave no hint that there is more below.
 */
function TooltipScrollArea({ children }: TooltipScrollAreaProps): JSX.Element {
	return <div className={styles.scrollArea}>{children}</div>;
}

export default TooltipScrollArea;