Tooltip

Enhanced title for buttons, displayed as instant tooltips.

Read more Read less

Note that inner block SHOULD be an element, not text:

This won’t show the tooltip:

<.tip>
  age?
  <:tip>42</:tip>
</.tip>

And this will.

<.tip>
  <span>age?</span>
  <:tip>42</:tip>
</.tip>

Finally, placement is computed, so it will differ when using a <span> or a <div>.

Attribute Type Documentation Default Value
tooltip_class :string

The tooltip classes that you can overwrite.

arrow_class :string

The classes responsible for the arrow that you can overwrite.

arrow :boolean

Boolean to show the arrow in the tooltip.

true
class :string

The classes responsible for the container.

placement :string

The placement of the tooltip relative to the container. You can also append ‘start’ and ‘end’ like ‘right-end’ or ‘top-start’.

"right"
inner_block :slot

The component that wears the tooltip

<.button text="Add new" icon="fa fa-plus"></.button>
tip :slot

Content of the tooltip

<:tip>This could take a while.</:tip>