Tooltip

The ArcadiaTooltip component wraps a trigger element and displays a small text tooltip on hover or focus.

Basic Usage

<ArcadiaTooltip Text="Save changes" Position="top">
    <button>Save</button>
</ArcadiaTooltip>

<ArcadiaTooltip Text="Delete this item" Position="right" Delay="500">
    <button>Delete</button>
</ArcadiaTooltip>

Parameters

ParameterTypeDefaultDescription
Textstring""Tooltip text content.
Positionstring"top"Tooltip position: "top", "bottom", "left", "right".
Delayint200Delay in milliseconds before the tooltip appears.
ChildContentRenderFragment?nullTrigger element content the tooltip wraps.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Accessibility

  • The tooltip popup uses role="tooltip".
  • The trigger container has aria-describedby pointing to the tooltip ID.
  • Works with both mouse hover and keyboard focus (CSS :hover and :focus-within).