Tooltip

Podpowiedź wyświetlana po najechaniu i przy fokusie, dla kontrolek z samą ikoną, z dowolnej strony, z opcjonalną strzałką.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: dostępny

Użycie

Import

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

Dokumentacja API

SoneTooltipDirectiveDyrektywa

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.

Selektor
[soneTooltip]
Wejścia
NazwaTyp Domyślnie
soneTooltipstring""
soneTooltipSide

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

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