evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a help icon component that displays tooltip information on desktop hover but does not interfere with mobile touch interactions.
Your task is to create a help icon button that shows additional information in a tooltip. The tooltip should:
Create a component called HelpIcon that accepts the following props:
helpText: string - The text to display in the tooltiplabel?: string - Optional accessible label for the help icon (defaults to "Help")The component should render a button with a "?" character or help icon that triggers the tooltip.
export interface HelpIconProps {
helpText: string;
label?: string;
}
export function HelpIcon(props: HelpIconProps): JSX.Element;Provides accessible tooltip components with pointer event handling.