NEURALNG

TOOLTIP

API

One standalone attribute directive, typed logical positions and three visual class slots.

Directive

NeuralTooltip[neuralTooltip]

Owns trigger events, accessible description linkage, renderer lifecycle and positioning.

Inputs

NameTypeDefaultDescription
neuralTooltip string'' Plain descriptive tooltip content.
tooltipPosition NeuralTooltipPosition'top' Requested logical overlay placement.
tooltipDisabled booleanfalse Prevents opening and closes an active tooltip.
showDelay number300 Pointer or focus opening delay in ms.
hideDelay number80 Leave or blur closing delay in ms.
tooltipId string | nullnull Stable ID used by aria-describedby; generated when absent.
tooltipClass string'' Additional class applied to the floating root.
classes NeuralTooltipClasses{} Typed classes for every slot.
unstyled booleanfalse Removes NeuralNg visual classes.

State and methods

visible: Signal<boolean>

Readonly rendered visibility state.

show(): void

Schedules opening with the configured show delay.

hide(immediate = false): void

Schedules closing or destroys the renderer immediately.

Typed class slots

root

Fixed-position top-layer host and placement state.

content

Text surface containing the accessible description.

arrow

Position-aware decorative arrow.

Public types

NeuralTooltipPosition

'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right'

NeuralTooltipClasses

Typed root, content and arrow class ownership.

Compatibility alias

TooltipDirective remains a deprecated alias. New code and generated AI output should import NeuralTooltip.