interface / @typed/ui/index

Tooltip.InitialState

Initial tooltip identity and visibility.

Learn this UI primitive →

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

Import

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

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