Help and Tooltips
Help people understand a setting
Use an info button next to a field or group title. It opens after 300 ms on hover or immediately on keyboard focus. Click or tap to keep the explanation open; click again, click outside, or press Escape to close it. The native touch long-press gesture also opens help, including on underlined text.
Use when artwork reaches the cut edge.
Hover delays
Choose instant, normal (300 ms), or long (800 ms). Normal is the default for Help. Use long for secondary explanations that should appear only when someone pauses to investigate. Keyboard focus always opens help immediately. Clicking or tapping these dedicated Help triggers also opens it immediately. Native touch long press works with every tooltip trigger, regardless of its hover delay.
Once a tooltip opens on hover, move to another tooltip trigger within 150 ms to show its explanation immediately. This continues across triggers, including long-delay actions, until you spend 150 ms away from them. Try waiting on Long below, then moving between the three labels. The tooltip itself closes immediately when you leave its trigger. Click a Help trigger to pin its explanation if you want to select text inside it.
Instant help for radio choices
Radio tooltips appear instantly on hover by default, so you can compare explanations while moving between options. Attach to the native input; its label supplies the visible target. On touchscreens, a tap selects the option and keeps its explanation open. Selecting another option replaces it; tapping elsewhere dismisses it. An explicit delay option overrides the instant default. With long delay, ordinary clicks and taps only select the option and dismiss help by default. Use a long hover, keyboard focus, or native touch long press to read that optional explanation.
Hover-only help closes immediately when you leave the radio choice, even after a long hover. Moving onto the tooltip itself does not keep it open.
Optional help for choices
Set openOnSelect to false when radio or checkbox clicks and taps should only change the value and dismiss help. This works independently of the hover delay. Infinipose's SVG, PDF and HPGL preview modes use long delay, which already defaults to this behavior. Keyboard focus and native touch long press still open their explanations. For normal-delay choices such as paper formats, pass delay: 'normal' and openOnSelect: false explicitly. Put each format's explanation on its own choice, rather than explaining all choices in a tooltip on the legend.
Secondary help for icon actions
ActionButton automatically uses its label as a tooltip with a long hover delay (800 ms). Specify title only when you want a fuller explanation; it replaces the tooltip text without creating a native browser tooltip. On touchscreens, long-press the action to read its tooltip. The browser's native context-menu gesture controls when it opens; releasing the gesture does not run the action. A normal tap just runs the action.
Try the reset icon below: a click or tap sets Copies to one. No tooltip attachment is needed. Use a separate Help button when people should be able to discover the explanation directly.
Text and Image
Place the image first in the snippet, followed by a paragraph. The tooltip gives the image equal top and side insets, with corner curves centered on the box's own curves. Include dimensions to reserve space and meaningful alt text to explain the diagram.
Image Only
A snippet can contain just an image, with the same inset on all four sides and matching corner centers. Its alt text must convey the explanation without the picture.
Custom Content
Use the same snippet or component object convention as context menus. A component receives no props; wrap it in a snippet to pass props or use reactive values. Field and NumberInput accept the same content in their help prop, and tooltip(content) accepts it on an existing control.
Place a custom visual in a leading tooltip-media element, followed by tooltip-body for its title and text. These are top-level elements in the component, with no enclosing layout wrapper. They use the same inset, image-to-text gap and concentric corners as the image examples. The component only styles the diagram itself.
The component owns its explanatory markup and styles:
Choose the right place for the explanation
Essential instructions belong in a visible field hint. Tooltips contain supplementary text, images or custom explanations. Use dotted-underlined Help text to explain a term in prose, and the tooltip attachment to describe an existing focusable control.
For the selectable button-style pattern used above, see Radio Buttons. Keep essential information visible; a long press is supplementary help, not the only way to understand an action.
Keep help buttons beside labels, never inside them. Tooltips do not contain links or buttons; longer interactive content belongs in a popup.
Tooltips use native popovers and fit the available viewport. The first Escape dismisses the tooltip while keeping its containing dialog open. Focus stays on the trigger.
The full API and interaction contract ship in @leon8ix/jhana-ui/docs/help.md. Start agent work at @leon8ix/jhana-ui/docs/README.md.