interface / @typed/ui/Tooltip

ContentOptions

Options for native tooltip popover content.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Native content host
Since
1.0.0

Import

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

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