Skip to content
Fable

Tooltips

Tooltips are tiny labels that appear on hover or focus. They name icon buttons, explain terms and show full text that was cut off. Below you will find placements, triggers, disabled wrappers, custom colours and many real spots such as toolbars, avatar stacks, tables and sidebars.

1Basic tooltip

Hover or focus the button to see its tooltip.

2Four directions

<code>data-ui-placement</code> sets the side.

3Links in text

Tooltips on inline links give extra context without clutter.

Fable works with car rental and local guides, so start in minutes and get help from a real person whenever you need it.

4Icon toolbar

Icon-only buttons need a tooltip and an <code>aria-label</code> to explain them.

5Disabled wrapper

Wrap a disabled button in a focusable span so the tooltip still shows.

6Custom colors

<code>data-ui-custom-class</code> plus a few CSS variables give the tooltip your brand colour.

7Click trigger

<code>data-ui-trigger="click"</code> shows the tooltip only on click - useful on touch screens.

8Avatar stack

Overlapping avatars show each member's name on hover.

Ravi KowalskiZoe HaddadMia WhitakerNadia CarterLeo Ortega

9Terms and abbreviations

Dotted underlined terms with a focusable span explain jargon.

Shipping is DDP and orders leave within one business day.

10Field help icon

A help icon after an input label.

app/

11Status dots

Coloured dots carry their details in a tooltip.

  • Holiday packages Online
  • Travel insurance Degraded
  • Travel insurance Offline

12Contact icons

Large icon links with descriptive tooltips.

13Table actions

Row action icons with tooltips naming the target.

MemberActions
Sofia Patel
Lucas Alvarez
Arjun Tanaka

14Truncated text

When <code>.text-truncate</code> cuts a title, the tooltip shows the whole text.

We keep things simple, so you can focus on what matters to you.

15Rating stars

Each star names its rating on hover.

16Comparison table

Check marks and add-on icons in a pricing comparison explain themselves.

FeatureProBasic
Best price guarantee
24/7 assistance
Flexible dates

17Icon sidebar

A slim icon-only sidebar where tooltips on the right name each page.

18Copy button

A copy button with a tooltip next to a command; <code>data-demo-copy</code> puts the text on the clipboard.

$

19Offset and no animation

<code>data-ui-offset</code> moves the tooltip away; <code>data-ui-animation="false"</code> shows it instantly.

20Keyboard shortcuts

Tooltips that reveal the keyboard shortcut for each command.

Tip: press Ctrl + K anywhere to search.