evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A help button component that shows a tooltip with dismissal capabilities.
The button shows a "?" icon. When the user hovers over the button, a tooltip appears with the help text.
import React from 'react';
export interface HelpButtonTooltipProps {
/** The help text to display in the tooltip */
helpText: string;
}
/**
* A help button component that displays a "?" icon and shows a tooltip
* with help text when hovered or focused. The tooltip dismisses on:
* Escape key press, trigger blur, trigger click, or page scroll.
*/
export default function HelpButtonTooltip(props: HelpButtonTooltipProps): React.ReactElement;Provides tooltip component primitives with built-in dismissal behavior on escape, blur, click, and scroll events.