Tooltip

Une infobulle au survol et au focus pour les contrôles composés d’une seule icône, de n’importe quel côté, avec flèche facultative.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Utilisation

Importation

ts
import {
  SoneTooltipDirective,
} from "@surface-one/angular/tooltip";

Référence de l’API

SoneTooltipDirectiveDirective

Replaces the host's native `title` rather than sitting beside it — both at once would show two tooltips. The bubble is `aria-hidden`; the control keeps naming itself as it already did, or a screen reader would announce the name twice.

Sélecteur
[soneTooltip]
Inputs
NomType Par défaut
soneTooltipstring""
soneTooltipSide

`null`: the side its container asks for (`SONE_TOOLTIP_SIDE`), else `bottom`.

TooltipSide | nullnull
soneTooltipAlignTooltipAlign"center"
soneTooltipArrowbooleantrue
soneTooltipDisabledbooleanfalse
soneTooltipShowDelay—SHOW_DELAY_MS