overlay — wyrd.component.tooltip

Tooltip

Text-only tooltip shown from a trigger on hover or focus.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
top state: hidden
Options
Usage
import { WyrdTooltip } from "@wyrd-company/react";

<WyrdTooltip text="More options" placement="top">
  Options
</WyrdTooltip>
bottom state: hidden
Save
Usage
import { WyrdTooltip } from "@wyrd-company/react";

<WyrdTooltip text="Save the current draft" placement="bottom">
  Save
</WyrdTooltip>
end state: hidden
Details
Usage
import { WyrdTooltip } from "@wyrd-company/react";

<WyrdTooltip text="Opens in a new panel" placement="end">
  Details
</WyrdTooltip>
02

Properties

NameTypeDefaultSummary
text string undefined Tooltip message text.
placement top | bottom | start | end top Preferred tooltip placement relative to the trigger.
03

Slots & events

SlotCardinalityAcceptsSummary
content exactly-one component Trigger component that receives the tooltip description relationship.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
background color.on-surface
foreground color.surface
radius rounded.sm
offset spacing.xs
05

States

StateSourceSummary
hidden behavior-runtime Tooltip is not visible.
visible behavior-runtime Tooltip is visible when the trigger is hovered or focus remains within the wrapper, unless Escape dismissed it.
06

Accessibility

From the contract's accessibility obligations. Role tooltip; Text property provides the tooltip message.

  • Tab moves focus to the trigger according to the trigger component.
  • Escape dismisses a visible tooltip without moving focus.
  • Web projections expose role=tooltip on the tooltip element.
  • The tooltip text is exposed as the trigger's accessible description; light-DOM tooltip targets may use IDREF association, while shadow-root tooltip surfaces use a string description on the light-DOM trigger.
  • Tooltip content is not focusable.
  • Flutter uses Material Tooltip; bottom maps to preferBelow=true and top/start/end are approximate.
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. Tooltip serializes text, preferred placement, and one trigger component. Web projections use collision-aware fixed positioning through the hand-written package positioning utility, so overflow and clipping ancestors do not clip the tooltip surface. V1 does not continuously track anchors during layout animations.

SerializableMembers
Propertiestext, placement
Slotscontent
Events
The Wyrding Way — a contract-first design system. © Wyrd Company