Tooltip

A short hint on hover and focus of its child; the label also becomes the child's accessible description.

Source on GitHub

An editor toolbar
Help, truncated text and status
API token
  • screenshot-2026-10-08-dark-theme-components-page.png1.8 MB
  • ray-remote-1.27.39-macos-arm64-signed.dmg42 MB
Hover or focus a dot
Placements
top-start top top-end left right bottom-start bottom bottom-end
Colors, delays and disabled
default violet teal #db2777 open-delay 0 open-delay 800 close-delay 1000 disabled (click to enable)
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-tooltip> · RayTooltip

PropertyAttributeTypeDefaultDescription
labellabelstringTooltip text.
placementplacement reflectstop | bottom | left | right | top-start | top-end | bottom-start | bottom-endtopPreferred side; -start/-end follow the writing direction.
openDelayopen-delaynumber300ms before showing.
closeDelayclose-delaynumber0ms before hiding.
colorcolorstringA palette color or any CSS color. Default: inverted foreground/background.
disableddisabledbooleanNever shows.
SlotDescription
(default)The element the tooltip describes (one element).
PartDescription
tooltipThe tooltip box.