Tooltip

Ein Tooltip bei Hover und Fokus für reine Icon-Steuerelemente, auf jeder Seite, mit optionalem Pfeil.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: verfügbar

Verwendung

Import

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

API-Referenz

SoneTooltipDirectiveDirektive

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]
Inputs
NameTyp Standard
soneTooltipstring""
soneTooltipSide

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

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