Tooltip

Adds a small tooltip to a piece of text. The shortcode content is the trigger.

Tooltip example
Tooltip example

Example

[bsv-tooltip title="More information" placement="top"]Hover or focus me[/bsv-tooltip]

Format

[bsv-tooltip parameter="value" ...]trigger text[/bsv-tooltip]

Parameters

Parameter Description Default
title Tooltip text. When empty, no tooltip is created. empty
placement top, right, bottom or left. top

The trigger is focusable and receives tabindex="0" and aria-describedby while the tooltip is open. The tooltip has role="tooltip"; Escape closes it. Without JavaScript the trigger text remains readable.

Last updated: