interface / @typed/ui/Tooltip

State

Current tooltip identity and visibility.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Open state
Since
1.0.0

Import

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

Signatures

export interface State {
    readonly id: string;
    readonly open: boolean;
}

Why

A stable id connects the anchor’s description relationship to native popover content while open state stays renderer-independent.

Ownership and lifetime

Plain state retains no resources; RefSubject observation is Scope-owned.

Property: id

Stable id used by aria-describedby and tooltip content.

Property: id: Why

Server and client must agree on the relationship target during hydration.

Property: id: Ownership and lifetime

Plain data acquires no resources.

Property: open

Whether tooltip content is open.

Property: open: Why

The value coordinates delayed anchor interactions and native popover state.

Property: open: Ownership and lifetime

Plain data acquires no resources.

Other public imports

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

Source