GitHub

Tooltip

Contextual text popup with placement options and trigger modes.

<rhx-tooltip>

Examples

Basic

Placements

Click Trigger

Disabled

Properties

Property Type Default Description
rhx-content string - The tooltip text
rhx-placement string top Position: top, bottom, left, right
rhx-trigger string hover Trigger mode: hover, click
rhx-disabled bool false Whether the tooltip is disabled

Accessibility

  • Tooltip element has role="tooltip" for assistive technology recognition.
  • The trigger element is linked to the tooltip via aria-describedby.
  • Keyboard focus on the trigger element shows the tooltip.