On this pageFunctions
Ui/Tooltip
/**
* Returns the bare DOM id of the tooltip trigger button, derived from the
* tooltip's base id. Use this to associate an external label with the
* trigger via a native `<label for={Tooltip.triggerId(id)}>` or an
* `aria-labelledby` reference.
*/
(id: string): string/** Configuration for creating a tooltip model with `init`. */
type InitConfig = Readonly<{
id: string
showDelay: Duration.Input
}>/**
* Render-time payload published to the consumer's `toView`.
*
* - `trigger`: attribute bundle for the trigger element. Carries the
* hover/focus/keyboard handlers + ARIA `aria-describedby` linking to
* the panel.
* - `panel`: attribute bundle for the panel element. Carries the
* `role="tooltip"`, the anchor Mount that positions the panel via
* Floating UI, and a `data-open` attribute when visible.
* - `isVisible`: derived state. The consumer decides whether to render
* the panel conditionally on this.
*/
type RenderInfo = Readonly<{
isVisible: boolean
panel: ReadonlyArray<ChildAttribute<Mount.RequirementsOf<typeof mounts>>>
trigger: ReadonlyArray<ChildAttribute>
}>