interface / @typed/ui/Hovercard

State

Current hovercard identity and visibility.

Learn this UI primitive →

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

Import

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

Signatures

export interface State {
    readonly id: string;
    readonly open: boolean;
}

Why

A stable id links the anchor to focusable native popover content while state remains renderer-independent.

Ownership and lifetime

Plain data retains no resources; RefSubject observation is Scope-owned.

Property: id

Stable id used by aria-controls and content.

Property: id: Why

Deterministic identity preserves server/client DOM relationships.

Property: id: Ownership and lifetime

Plain data acquires no resources.

Property: open

Whether the hovercard is open.

Property: open: Why

One value coordinates delayed 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