interface / @typed/ui/Tooltip

InitialState

Initial tooltip identity and visibility.

Learn this UI primitive →

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

Import

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

Signatures

export interface InitialState {
    readonly id: string;
    readonly open?: boolean;
}

Why

Requiring an id makes the accessibility relationship explicit.

Ownership and lifetime

Configuration is inert.

Property: id

Stable tooltip id.

Property: id: Why

Deterministic ids prevent SSR/client relationship drift.

Property: id: Ownership and lifetime

Plain data retains no resources.

Property: open

Initial visibility, defaulting to false.

Property: open: Why

Closed is the deterministic default before user focus or hover.

Property: open: Ownership and lifetime

Plain data retains no resources.

Other public imports

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

Source