Tooltip
The tooltip component, prefixed by gds-tooltip, is a small explanatory message that appears when hovering over an element. Tooltips require a data-tooltip attribute containing their message.
<span class="gds-tooltip--right" data-tooltip="I am a tooltip!">
<button type="button" class="gds-button gds-button--primary">Button with tooltip</button>
</span>
Optional classes:
gds-tooltip--topgds-tooltip--rightgds-tooltip--bottomgds-tooltip--leftgds-tooltip--primarygds-tooltip--successgds-tooltip--infogds-tooltip--warninggds-tooltip--dangergds-tooltip--lggds-tooltip--alwaysgds-tooltip--no-animategds-tooltip--bouncegds-tooltip--dark