interface / @typed/ui

Hovercard.InitialState

Initial hovercard identity and visibility.

Learn this UI primitive →

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

Import

import { Hovercard } from "@typed/ui";

Access Hovercard.InitialState through the imported Hovercard 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 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