Skip to content

Tooltip ​

Use bo-tooltip for brief, non-interactive context attached to a control.

Usage ​

<bo-tooltip content="More information">
  <bo-button>Hover or focus</bo-button>
</bo-tooltip>

Placement ​

Use one of the side and alignment placements. The default placement is top.

<bo-tooltip content="Shown above" placement="top" :arrow="false">
  <bo-button>Top tooltip</bo-button>
</bo-tooltip>

Triggers and delays ​

The default trigger is hover. Use focus, click, or manual with visible. show-delay and hide-delay are measured in milliseconds.

<bo-tooltip content="Click for details" trigger="click">
  <bo-button>Click</bo-button>
</bo-tooltip>

API ​

Prop / event / slotTypeDefaultDescription
id / dataTestIdstringautogeneratedTooltip attributes.
contentstring-Plain tooltip content.
placementBoTooltipPlacementtopPosition beside the trigger.
triggerhover | focus | click | manualhoverVisibility trigger.
visiblebooleanfalseVisibility for a manual trigger.
disabledbooleanfalsePrevents showing the tooltip.
showDelay / hideDelaynumber100Show and hide delays in milliseconds.
offsetnumber8Gap from the trigger.
arrowbooleantrueShows the pointing arrow.
roleHTMLAttributes['role']tooltipTooltip semantics.
show / hideevent-Emitted when visibility changes.
defaultslot-Interactive trigger content.
contentslot-Rich content beside the string prop.

Released under the MIT License.