Tooltip

Uma tooltip de hover e foco para controles só com ícone, em qualquer lado, com seta opcional.

Disponível em
  • Angular: disponível
  • Vue: disponível
  • React: disponível
  • React Native: disponível

Uso

Importação

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

Referência da API

SoneTooltipDirectiveDiretiva

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.

Seletor
[soneTooltip]
Inputs
NomeTipo Padrão
soneTooltipstring""
soneTooltipSide

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

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