v14.0.2


dialogs

Tooltip

A popup that displays information related to an element.

Features

  • Opens when the trigger is focused or hovered.
  • Closes when the trigger is activated or when pressing escape.
  • Supports custom timing.
Hover me

Anatomy

import { Tooltip } from "@wonderflow/react-components";
export default () => { return (
<Tooltip trigger={<span tabIndex={0}>Hover me</span>}>
This is an extended description.
</Tooltip>
); };

tsx

API Reference

PROPERTY
TYPE
DEFAULT
trigger*
ReactNode
placement
enum
auto-start
open
boolean
delay
number
500
maxWidth
string
40ch
interactive
boolean
false
fill
boolean
false

Accessibility

Adheres to the tooltip role requirements.

Keyboard interactions

NameDescription
tabMove focus on the trigger and open the tooltip.
escClose the tooltip

Created by Wonderflow Design Team for Wonderflow.

© Wonderflow 2024