Tooltip

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

Previous

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add tooltip

Examples

hover

click

position

events

Event: none

API

[z-tooltip] Directive

Property Description Type Default
zTooltip The text content of tooltip string -
zPosition The position of the tooltip top | bottom | left | right top
zTrigger The tooltip trigger mode. hover | click hover
zShowDelay Delay showing the tooltip after trigger in milliseconds number 150
zHideDelay Delay hiding the tooltip after trigger in milliseconds number 100
(zShow) Emitted when the tooltip is shown output<void> -
(zHide) Emitted when the tooltip is hidden output<void> -