Skip to content

InfoTip

A small round ⓘ beside a label that explains it in plain words. It opens on a click, a tap or the keyboard, so it reaches touch screens, unlike a tooltip.

Language
Appearance

Beside a metric

Answer rate

94%

import { InfoTip } from '@arbol-ai/ui';

<div className="space-y-1">
  <p className="text-muted-foreground flex items-center gap-1 text-sm">
    Answer rate
    <InfoTip label="Answer rate">
      The share of calls the agent answered within three rings, over the selected dates.
    </InfoTip>
  </p>
  <p className="font-heading text-2xl font-medium">94%</p>
</div>

A longer explanation

Business hours
import { InfoTip } from '@arbol-ai/ui';

<div className="flex items-center gap-1 text-sm font-medium">
  Business hours
  <InfoTip label="Business hours">
    <p>Outside these hours the agent still answers, but it books no appointments.</p>
    <p>Holidays follow the calendar of the clinic’s country.</p>
  </InfoTip>
</div>

Source

The examples above are src/components/info-tip/info-tip.examples.tsx, which the library’s tests render too.

Type to search…

↑↓ navigate↵ selectEsc close