Documentation
Components
Tooltip

Tooltip

Give your content string to data-tooltip slot attribute to plant it.

Position

Use top bottom left right classes to control the position of tooltip.

<span class="tooltip bw top" data-tooltip="hello">
  <button class="btn solid">top</button>
</span>
Preview

Code

HTML

Code

JSX/TSX

Force show

Apply show class on it to keep tooltip open.

Preview

Code

HTML

Code

JSX/TSX

Click to show

The default function way of tooltip component is hover, but you can apply click-show class on it to change this behavior.

Preview

Code

HTML

Code

JSX/TSX