interface / @typed/ui/Hovercard

InitialState

Initial hovercard 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/Hovercard";

Signatures

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

Why

Requiring an id makes the anchor/content relationship explicit.

Ownership and lifetime

Configuration is inert.

Property: id

Stable content id.

Property: id: Why

Explicit ids prevent hydration relationship drift.

Property: id: Ownership and lifetime

Plain data retains no resources.

Property: open

Initial visibility, defaulting to false.

Property: open: Why

Closed is deterministic before focus or hover interaction.

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