Tooltip

Un tooltip al passaggio del mouse e al focus per i controlli con sola icona, su qualsiasi lato, con freccia facoltativa.

Disponibile in
  • Angular: disponibile
  • Vue: disponibile
  • React: disponibile
  • React Native: disponibile

Utilizzo

Importazione

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

Riferimento API

SoneTooltipDirectiveDirettiva

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.

Selettore
[soneTooltip]
Input
NomeTipo Predefinito
soneTooltipstring""
soneTooltipSide

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

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