TwitterGithub

Tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

Installation

npx nx g @spartan-ng/cli:ui tooltip

Usage

import { BrnTooltipContentDirective } from '@spartan-ng/ui-tooltip-brain';
import { HlmTooltipComponent, HlmTooltipTriggerDirective } from '@spartan-ng/ui-tooltip-helm';
<hlm-tooltip>
  <button hlmTooltipTrigger aria-describedby="Hello world">Test</button>
  <span *brnTooltipContent>Add to library</span>
</hlm-tooltip>
Toggle