interface / @typed/ui/index

Tooltip.State

Current tooltip identity and visibility.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Open state
Since
1.0.0
Member of
Tooltip

Import

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

Access Tooltip.State 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 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