Skip to main content
In Review

Tooltip

Default

Usage

  <span
    class="gi-tooltip-wrapper"
    data-module="gieds-tooltip"
  >        
    <button
      data-testid="govieButton-default-primary-medium-notDisabled"
      data-element="button-container"
      data-module="gieds-button"
      class="gi-btn gi-btn-primary gi-btn-regular"
    >
      Default (Hover me)
    </button>
    <span 
      role="tooltip" 
      class="gi-tooltip gi-tooltip-top"
      aria-hidden="true"
    >
      Tooltip right.
    </span>
  </span>
{{ govieTooltip({
  "position": "top",
  "text": "Tooltip right.",
  "content": "\n    <button\n      data-testid=\"govieButton-default-primary-medium-notDisabled\"\n      data-element=\"button-container\"\n      data-module=\"gieds-button\"\n      class=\"gi-btn gi-btn-primary gi-btn-regular\"\n    >\n      Default (Hover me)\n    </button>"
}) }}
import { Tooltip, Button } from '@govie-ds/react';

<Tooltip
  text="Default Tooltip"
  position="top"
>
  <Button variant="primary">
    Hover me (Top)
  </Button>
</Tooltip>

Best Practices

When to use this component

When not to use this component

Status

Figma Library
Considering
Local HTML
Stable
Global HTML
Beta
Global React
Beta