Vivid API

Toggletip

A Toggletip is a type of Tooltip that is opened when clicking or tapping on the trigger button.

Toggletip works differently to Tooltip in that it requires a click to display and is keyboard accessible. This means it can display user actions such as links and buttons. The Toggletip’s contents are provided using the headline attribute (below) the default slot or the action-items slot.

Headline

The headline attributes sets the Toggletip headline.

Placement

The placement attribute sets the default placement of the Toggletip around its anchor element.

The Tooggletip will attempt to position itself where the placement attribute dictates (or the default of bottom if not set). If it is unable to do so, because of lack of available space on the screen, it will reposition itself to the most appropriate alternative placement.

Alternate

The alternate attribute changes the Toggletip’s color scheme to the opposite of the currently select one (eg. from light to dark).

Read more about the alternative attribute