interface / @typed/ui

Tooltip.ContentOptions

Options for native tooltip popover content.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Native content host
Since
1.0.0
Member of
Tooltip

Import

import { Tooltip } from "@typed/ui";

Access Tooltip.ContentOptions through the imported Tooltip export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export interface ContentOptions extends Dom.HostOptions<HTMLDivElement> {
    readonly state: RefSubject.HydratedRefSubject<State, Schema.SchemaError>;
    readonly content: Renderable.Any;
}

Why

The role and native top-layer lifecycle remain explicit.

Ownership and lifetime

Options are inert; rendering owns listeners/ref observation by Scope.

Property: content

Non-interactive explanatory tooltip content.

Property: content: Why

Tooltip content describes its anchor and must not contain required controls.

Property: content: Ownership and lifetime

Dynamic content follows the content Scope.

Property: state

Hydrated state supplying content id and visibility.

Property: state: Why

One source keeps ARIA relationship and native popover state aligned.

Property: state: Ownership and lifetime

Content borrows state; its original Scope owns it.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source