interface / @typed/ui

Hovercard.State

Current hovercard identity and visibility.

Learn this UI primitive →

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

Import

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

Access Hovercard.State 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 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